public class VkIndirectCommandsTokenNVX
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
buffer’s usage flag must have the BUFFER_USAGE_INDIRECT_BUFFER_BIT bit set.offset must be aligned to VkDeviceGeneratedCommandsLimitsNVX::minCommandsTokenBufferOffsetAlignment.tokenType must be a valid VkIndirectCommandsTokenTypeNVX valuebuffer must be a valid VkBuffer handletokenType – specifies the token command type.buffer – specifies the VkBuffer storing the functional arguments for each squence. These argumetns can be written by the device.offset – specified an offset into buffer where the arguments start.
struct VkIndirectCommandsTokenNVX {
VkIndirectCommandsTokenTypeNVX tokenType;
VkBuffer buffer;
VkDeviceSize offset;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkIndirectCommandsTokenNVX.Buffer
An array of
VkIndirectCommandsTokenNVX structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BUFFER
The struct member offsets.
|
static int |
OFFSET
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TOKENTYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkIndirectCommandsTokenNVX(java.nio.ByteBuffer container)
Creates a
VkIndirectCommandsTokenNVX instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
long |
buffer()
Returns the value of the
buffer field. |
VkIndirectCommandsTokenNVX |
buffer(long value)
Sets the specified value to the
buffer field. |
static VkIndirectCommandsTokenNVX |
calloc()
Returns a new
VkIndirectCommandsTokenNVX instance allocated with memCalloc. |
static VkIndirectCommandsTokenNVX.Buffer |
calloc(int capacity)
Returns a new
VkIndirectCommandsTokenNVX.Buffer instance allocated with memCalloc. |
static VkIndirectCommandsTokenNVX |
callocStack()
Returns a new
VkIndirectCommandsTokenNVX instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkIndirectCommandsTokenNVX.Buffer |
callocStack(int capacity)
Returns a new
VkIndirectCommandsTokenNVX.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkIndirectCommandsTokenNVX.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkIndirectCommandsTokenNVX.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkIndirectCommandsTokenNVX |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkIndirectCommandsTokenNVX instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkIndirectCommandsTokenNVX |
create()
Returns a new
VkIndirectCommandsTokenNVX instance allocated with BufferUtils. |
static VkIndirectCommandsTokenNVX.Buffer |
create(int capacity)
Returns a new
VkIndirectCommandsTokenNVX.Buffer instance allocated with BufferUtils. |
static VkIndirectCommandsTokenNVX |
create(long address)
Returns a new
VkIndirectCommandsTokenNVX instance for the specified memory address. |
static VkIndirectCommandsTokenNVX.Buffer |
create(long address,
int capacity)
Create a
VkIndirectCommandsTokenNVX.Buffer instance at the specified memory. |
static VkIndirectCommandsTokenNVX |
createSafe(long address)
|
static VkIndirectCommandsTokenNVX.Buffer |
createSafe(long address,
int capacity)
|
static VkIndirectCommandsTokenNVX |
malloc()
Returns a new
VkIndirectCommandsTokenNVX instance allocated with memAlloc. |
static VkIndirectCommandsTokenNVX.Buffer |
malloc(int capacity)
Returns a new
VkIndirectCommandsTokenNVX.Buffer instance allocated with memAlloc. |
static VkIndirectCommandsTokenNVX |
mallocStack()
Returns a new
VkIndirectCommandsTokenNVX instance allocated on the thread-local MemoryStack. |
static VkIndirectCommandsTokenNVX.Buffer |
mallocStack(int capacity)
Returns a new
VkIndirectCommandsTokenNVX.Buffer instance allocated on the thread-local MemoryStack. |
static VkIndirectCommandsTokenNVX.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkIndirectCommandsTokenNVX.Buffer instance allocated on the specified MemoryStack. |
static VkIndirectCommandsTokenNVX |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkIndirectCommandsTokenNVX instance allocated on the specified MemoryStack. |
static long |
nbuffer(long struct)
Unsafe version of
buffer(). |
static void |
nbuffer(long struct,
long value)
Unsafe version of
buffer. |
static long |
noffset(long struct)
Unsafe version of
offset(). |
static void |
noffset(long struct,
long value)
Unsafe version of
offset. |
static int |
ntokenType(long struct)
Unsafe version of
tokenType(). |
static void |
ntokenType(long struct,
int value)
Unsafe version of
tokenType. |
long |
offset()
Returns the value of the
offset field. |
VkIndirectCommandsTokenNVX |
offset(long value)
Sets the specified value to the
offset field. |
VkIndirectCommandsTokenNVX |
set(int tokenType,
long buffer,
long offset)
Initializes this struct with the specified values.
|
VkIndirectCommandsTokenNVX |
set(VkIndirectCommandsTokenNVX src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
tokenType()
Returns the value of the
tokenType field. |
VkIndirectCommandsTokenNVX |
tokenType(int value)
Sets the specified value to the
tokenType field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int TOKENTYPE
public static final int BUFFER
public static final int OFFSET
public VkIndirectCommandsTokenNVX(java.nio.ByteBuffer container)
VkIndirectCommandsTokenNVX 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 tokenType()
tokenType field.public long buffer()
buffer field.public long offset()
offset field.public VkIndirectCommandsTokenNVX tokenType(int value)
tokenType field.public VkIndirectCommandsTokenNVX buffer(long value)
buffer field.public VkIndirectCommandsTokenNVX offset(long value)
offset field.public VkIndirectCommandsTokenNVX set(int tokenType, long buffer, long offset)
public VkIndirectCommandsTokenNVX set(VkIndirectCommandsTokenNVX src)
src - the source structpublic static VkIndirectCommandsTokenNVX malloc()
VkIndirectCommandsTokenNVX instance allocated with memAlloc. The instance must be explicitly freed.public static VkIndirectCommandsTokenNVX calloc()
VkIndirectCommandsTokenNVX instance allocated with memCalloc. The instance must be explicitly freed.public static VkIndirectCommandsTokenNVX create()
VkIndirectCommandsTokenNVX instance allocated with BufferUtils.public static VkIndirectCommandsTokenNVX create(long address)
VkIndirectCommandsTokenNVX instance for the specified memory address.@Nullable public static VkIndirectCommandsTokenNVX createSafe(long address)
public static VkIndirectCommandsTokenNVX.Buffer malloc(int capacity)
VkIndirectCommandsTokenNVX.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkIndirectCommandsTokenNVX.Buffer calloc(int capacity)
VkIndirectCommandsTokenNVX.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkIndirectCommandsTokenNVX.Buffer create(int capacity)
VkIndirectCommandsTokenNVX.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkIndirectCommandsTokenNVX.Buffer create(long address, int capacity)
VkIndirectCommandsTokenNVX.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkIndirectCommandsTokenNVX.Buffer createSafe(long address, int capacity)
public static VkIndirectCommandsTokenNVX mallocStack()
VkIndirectCommandsTokenNVX instance allocated on the thread-local MemoryStack.public static VkIndirectCommandsTokenNVX callocStack()
VkIndirectCommandsTokenNVX instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkIndirectCommandsTokenNVX mallocStack(org.lwjgl.system.MemoryStack stack)
VkIndirectCommandsTokenNVX instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkIndirectCommandsTokenNVX callocStack(org.lwjgl.system.MemoryStack stack)
VkIndirectCommandsTokenNVX instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkIndirectCommandsTokenNVX.Buffer mallocStack(int capacity)
VkIndirectCommandsTokenNVX.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkIndirectCommandsTokenNVX.Buffer callocStack(int capacity)
VkIndirectCommandsTokenNVX.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkIndirectCommandsTokenNVX.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkIndirectCommandsTokenNVX.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkIndirectCommandsTokenNVX.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkIndirectCommandsTokenNVX.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 ntokenType(long struct)
tokenType().public static long nbuffer(long struct)
buffer().public static long noffset(long struct)
offset().public static void ntokenType(long struct,
int value)
tokenType.public static void nbuffer(long struct,
long value)
buffer.public static void noffset(long struct,
long value)
offset.Copyright LWJGL. All Rights Reserved. License terms.