public class VkBaseInStructure
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
VkBaseInStructure can be used to facilitate iterating through a read-only structure pointer chain.
sType – the structure type of the structure being iterated through.pNext – NULL or a pointer to the next structure in a structure chain.
struct VkBaseInStructure {
VkStructureType sType;
VkBaseInStructure * pNext;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkBaseInStructure.Buffer
An array of
VkBaseInStructure structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkBaseInStructure(java.nio.ByteBuffer container)
Creates a
VkBaseInStructure instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkBaseInStructure |
calloc()
Returns a new
VkBaseInStructure instance allocated with memCalloc. |
static VkBaseInStructure.Buffer |
calloc(int capacity)
Returns a new
VkBaseInStructure.Buffer instance allocated with memCalloc. |
static VkBaseInStructure |
callocStack()
Returns a new
VkBaseInStructure instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkBaseInStructure.Buffer |
callocStack(int capacity)
Returns a new
VkBaseInStructure.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkBaseInStructure.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkBaseInStructure.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkBaseInStructure |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkBaseInStructure instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkBaseInStructure |
create()
Returns a new
VkBaseInStructure instance allocated with BufferUtils. |
static VkBaseInStructure.Buffer |
create(int capacity)
Returns a new
VkBaseInStructure.Buffer instance allocated with BufferUtils. |
static VkBaseInStructure |
create(long address)
Returns a new
VkBaseInStructure instance for the specified memory address. |
static VkBaseInStructure.Buffer |
create(long address,
int capacity)
Create a
VkBaseInStructure.Buffer instance at the specified memory. |
static VkBaseInStructure |
createSafe(long address)
|
static VkBaseInStructure.Buffer |
createSafe(long address,
int capacity)
|
static VkBaseInStructure |
malloc()
Returns a new
VkBaseInStructure instance allocated with memAlloc. |
static VkBaseInStructure.Buffer |
malloc(int capacity)
Returns a new
VkBaseInStructure.Buffer instance allocated with memAlloc. |
static VkBaseInStructure |
mallocStack()
Returns a new
VkBaseInStructure instance allocated on the thread-local MemoryStack. |
static VkBaseInStructure.Buffer |
mallocStack(int capacity)
Returns a new
VkBaseInStructure.Buffer instance allocated on the thread-local MemoryStack. |
static VkBaseInStructure.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkBaseInStructure.Buffer instance allocated on the specified MemoryStack. |
static VkBaseInStructure |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkBaseInStructure instance allocated on the specified MemoryStack. |
static VkBaseInStructure |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
VkBaseInStructure value)
Unsafe version of
pNext. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
VkBaseInStructure |
pNext()
Returns a
VkBaseInStructure view of the struct pointed to by the pNext field. |
VkBaseInStructure |
pNext(VkBaseInStructure value)
Sets the address of the specified
VkBaseInStructure to the pNext field. |
VkBaseInStructure |
set(int sType,
VkBaseInStructure pNext)
Initializes this struct with the specified values.
|
VkBaseInStructure |
set(VkBaseInStructure src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkBaseInStructure |
sType(int value)
Sets the specified value to the
sType field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public VkBaseInStructure(java.nio.ByteBuffer container)
VkBaseInStructure instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be
visible to the struct instance and vice versa.
The created instance holds a strong reference to the container object.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.@Nullable public VkBaseInStructure pNext()
VkBaseInStructure view of the struct pointed to by the pNext field.public VkBaseInStructure sType(int value)
sType field.public VkBaseInStructure pNext(@Nullable VkBaseInStructure value)
VkBaseInStructure to the pNext field.public VkBaseInStructure set(int sType, @Nullable VkBaseInStructure pNext)
public VkBaseInStructure set(VkBaseInStructure src)
src - the source structpublic static VkBaseInStructure malloc()
VkBaseInStructure instance allocated with memAlloc. The instance must be explicitly freed.public static VkBaseInStructure calloc()
VkBaseInStructure instance allocated with memCalloc. The instance must be explicitly freed.public static VkBaseInStructure create()
VkBaseInStructure instance allocated with BufferUtils.public static VkBaseInStructure create(long address)
VkBaseInStructure instance for the specified memory address.@Nullable public static VkBaseInStructure createSafe(long address)
public static VkBaseInStructure.Buffer malloc(int capacity)
VkBaseInStructure.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkBaseInStructure.Buffer calloc(int capacity)
VkBaseInStructure.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkBaseInStructure.Buffer create(int capacity)
VkBaseInStructure.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkBaseInStructure.Buffer create(long address, int capacity)
VkBaseInStructure.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkBaseInStructure.Buffer createSafe(long address, int capacity)
public static VkBaseInStructure mallocStack()
VkBaseInStructure instance allocated on the thread-local MemoryStack.public static VkBaseInStructure callocStack()
VkBaseInStructure instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkBaseInStructure mallocStack(org.lwjgl.system.MemoryStack stack)
VkBaseInStructure instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkBaseInStructure callocStack(org.lwjgl.system.MemoryStack stack)
VkBaseInStructure instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkBaseInStructure.Buffer mallocStack(int capacity)
VkBaseInStructure.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkBaseInStructure.Buffer callocStack(int capacity)
VkBaseInStructure.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkBaseInStructure.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkBaseInStructure.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkBaseInStructure.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkBaseInStructure.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().@Nullable public static VkBaseInStructure npNext(long struct)
pNext().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
@Nullable
VkBaseInStructure value)
pNext.Copyright LWJGL. All Rights Reserved. License terms.