public class VkBaseOutStructure
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
VkBaseOutStructure can be used to facilitate iterating through a structure pointer chain that returns data back to the application.
sType – the structure type of the structure being iterated through.pNext – NULL or a pointer to the next structure in a structure chain.
struct VkBaseOutStructure {
VkStructureType sType;
VkBaseOutStructure * pNext;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkBaseOutStructure.Buffer
An array of
VkBaseOutStructure 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 |
|---|
VkBaseOutStructure(java.nio.ByteBuffer container)
Creates a
VkBaseOutStructure instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkBaseOutStructure |
calloc()
Returns a new
VkBaseOutStructure instance allocated with memCalloc. |
static VkBaseOutStructure.Buffer |
calloc(int capacity)
Returns a new
VkBaseOutStructure.Buffer instance allocated with memCalloc. |
static VkBaseOutStructure |
callocStack()
Returns a new
VkBaseOutStructure instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkBaseOutStructure.Buffer |
callocStack(int capacity)
Returns a new
VkBaseOutStructure.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkBaseOutStructure.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkBaseOutStructure.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkBaseOutStructure |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkBaseOutStructure instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkBaseOutStructure |
create()
Returns a new
VkBaseOutStructure instance allocated with BufferUtils. |
static VkBaseOutStructure.Buffer |
create(int capacity)
Returns a new
VkBaseOutStructure.Buffer instance allocated with BufferUtils. |
static VkBaseOutStructure |
create(long address)
Returns a new
VkBaseOutStructure instance for the specified memory address. |
static VkBaseOutStructure.Buffer |
create(long address,
int capacity)
Create a
VkBaseOutStructure.Buffer instance at the specified memory. |
static VkBaseOutStructure |
createSafe(long address)
|
static VkBaseOutStructure.Buffer |
createSafe(long address,
int capacity)
|
static VkBaseOutStructure |
malloc()
Returns a new
VkBaseOutStructure instance allocated with memAlloc. |
static VkBaseOutStructure.Buffer |
malloc(int capacity)
Returns a new
VkBaseOutStructure.Buffer instance allocated with memAlloc. |
static VkBaseOutStructure |
mallocStack()
Returns a new
VkBaseOutStructure instance allocated on the thread-local MemoryStack. |
static VkBaseOutStructure.Buffer |
mallocStack(int capacity)
Returns a new
VkBaseOutStructure.Buffer instance allocated on the thread-local MemoryStack. |
static VkBaseOutStructure.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkBaseOutStructure.Buffer instance allocated on the specified MemoryStack. |
static VkBaseOutStructure |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkBaseOutStructure instance allocated on the specified MemoryStack. |
static VkBaseOutStructure |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
VkBaseOutStructure 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. |
VkBaseOutStructure |
pNext()
Returns a
VkBaseOutStructure view of the struct pointed to by the pNext field. |
VkBaseOutStructure |
pNext(VkBaseOutStructure value)
Sets the address of the specified
VkBaseOutStructure to the pNext field. |
VkBaseOutStructure |
set(int sType,
VkBaseOutStructure pNext)
Initializes this struct with the specified values.
|
VkBaseOutStructure |
set(VkBaseOutStructure src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkBaseOutStructure |
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 VkBaseOutStructure(java.nio.ByteBuffer container)
VkBaseOutStructure 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 VkBaseOutStructure pNext()
VkBaseOutStructure view of the struct pointed to by the pNext field.public VkBaseOutStructure sType(int value)
sType field.public VkBaseOutStructure pNext(@Nullable VkBaseOutStructure value)
VkBaseOutStructure to the pNext field.public VkBaseOutStructure set(int sType, @Nullable VkBaseOutStructure pNext)
public VkBaseOutStructure set(VkBaseOutStructure src)
src - the source structpublic static VkBaseOutStructure malloc()
VkBaseOutStructure instance allocated with memAlloc. The instance must be explicitly freed.public static VkBaseOutStructure calloc()
VkBaseOutStructure instance allocated with memCalloc. The instance must be explicitly freed.public static VkBaseOutStructure create()
VkBaseOutStructure instance allocated with BufferUtils.public static VkBaseOutStructure create(long address)
VkBaseOutStructure instance for the specified memory address.@Nullable public static VkBaseOutStructure createSafe(long address)
public static VkBaseOutStructure.Buffer malloc(int capacity)
VkBaseOutStructure.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkBaseOutStructure.Buffer calloc(int capacity)
VkBaseOutStructure.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkBaseOutStructure.Buffer create(int capacity)
VkBaseOutStructure.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkBaseOutStructure.Buffer create(long address, int capacity)
VkBaseOutStructure.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkBaseOutStructure.Buffer createSafe(long address, int capacity)
public static VkBaseOutStructure mallocStack()
VkBaseOutStructure instance allocated on the thread-local MemoryStack.public static VkBaseOutStructure callocStack()
VkBaseOutStructure instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkBaseOutStructure mallocStack(org.lwjgl.system.MemoryStack stack)
VkBaseOutStructure instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkBaseOutStructure callocStack(org.lwjgl.system.MemoryStack stack)
VkBaseOutStructure instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkBaseOutStructure.Buffer mallocStack(int capacity)
VkBaseOutStructure.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkBaseOutStructure.Buffer callocStack(int capacity)
VkBaseOutStructure.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkBaseOutStructure.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkBaseOutStructure.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkBaseOutStructure.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkBaseOutStructure.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 VkBaseOutStructure npNext(long struct)
pNext().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
@Nullable
VkBaseOutStructure value)
pNext.Copyright LWJGL. All Rights Reserved. License terms.