public class VkIndirectCommandsLayoutTokenNVX
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
bindingUnit must stay within device supported limits for the appropriate commands.dynamicCount must stay within device supported limits for the appropriate commands.divisor must be greater than 0 and a power of two.tokenType must be a valid VkIndirectCommandsTokenTypeNVX valueVkIndirectCommandsLayoutCreateInfoNVX
bindingUnit – has a different meaning depending on the type, please refer pseudo code further down for details.dynamicCount – has a different meaning depending on the type, please refer pseudo code further down for details.divisor – defines the rate at which the input data buffers are accessed.
struct VkIndirectCommandsLayoutTokenNVX {
VkIndirectCommandsTokenTypeNVX tokenType;
uint32_t bindingUnit;
uint32_t dynamicCount;
uint32_t divisor;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkIndirectCommandsLayoutTokenNVX.Buffer
An array of
VkIndirectCommandsLayoutTokenNVX structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BINDINGUNIT
The struct member offsets.
|
static int |
DIVISOR
The struct member offsets.
|
static int |
DYNAMICCOUNT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TOKENTYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkIndirectCommandsLayoutTokenNVX(java.nio.ByteBuffer container)
Creates a
VkIndirectCommandsLayoutTokenNVX instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
bindingUnit()
Returns the value of the
bindingUnit field. |
VkIndirectCommandsLayoutTokenNVX |
bindingUnit(int value)
Sets the specified value to the
bindingUnit field. |
static VkIndirectCommandsLayoutTokenNVX |
calloc()
Returns a new
VkIndirectCommandsLayoutTokenNVX instance allocated with memCalloc. |
static VkIndirectCommandsLayoutTokenNVX.Buffer |
calloc(int capacity)
Returns a new
VkIndirectCommandsLayoutTokenNVX.Buffer instance allocated with memCalloc. |
static VkIndirectCommandsLayoutTokenNVX |
callocStack()
Returns a new
VkIndirectCommandsLayoutTokenNVX instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkIndirectCommandsLayoutTokenNVX.Buffer |
callocStack(int capacity)
Returns a new
VkIndirectCommandsLayoutTokenNVX.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkIndirectCommandsLayoutTokenNVX.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkIndirectCommandsLayoutTokenNVX.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkIndirectCommandsLayoutTokenNVX |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkIndirectCommandsLayoutTokenNVX instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkIndirectCommandsLayoutTokenNVX |
create()
Returns a new
VkIndirectCommandsLayoutTokenNVX instance allocated with BufferUtils. |
static VkIndirectCommandsLayoutTokenNVX.Buffer |
create(int capacity)
Returns a new
VkIndirectCommandsLayoutTokenNVX.Buffer instance allocated with BufferUtils. |
static VkIndirectCommandsLayoutTokenNVX |
create(long address)
Returns a new
VkIndirectCommandsLayoutTokenNVX instance for the specified memory address. |
static VkIndirectCommandsLayoutTokenNVX.Buffer |
create(long address,
int capacity)
Create a
VkIndirectCommandsLayoutTokenNVX.Buffer instance at the specified memory. |
static VkIndirectCommandsLayoutTokenNVX |
createSafe(long address)
|
static VkIndirectCommandsLayoutTokenNVX.Buffer |
createSafe(long address,
int capacity)
|
int |
divisor()
Returns the value of the
divisor field. |
VkIndirectCommandsLayoutTokenNVX |
divisor(int value)
Sets the specified value to the
divisor field. |
int |
dynamicCount()
Returns the value of the
dynamicCount field. |
VkIndirectCommandsLayoutTokenNVX |
dynamicCount(int value)
Sets the specified value to the
dynamicCount field. |
static VkIndirectCommandsLayoutTokenNVX |
malloc()
Returns a new
VkIndirectCommandsLayoutTokenNVX instance allocated with memAlloc. |
static VkIndirectCommandsLayoutTokenNVX.Buffer |
malloc(int capacity)
Returns a new
VkIndirectCommandsLayoutTokenNVX.Buffer instance allocated with memAlloc. |
static VkIndirectCommandsLayoutTokenNVX |
mallocStack()
Returns a new
VkIndirectCommandsLayoutTokenNVX instance allocated on the thread-local MemoryStack. |
static VkIndirectCommandsLayoutTokenNVX.Buffer |
mallocStack(int capacity)
Returns a new
VkIndirectCommandsLayoutTokenNVX.Buffer instance allocated on the thread-local MemoryStack. |
static VkIndirectCommandsLayoutTokenNVX.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkIndirectCommandsLayoutTokenNVX.Buffer instance allocated on the specified MemoryStack. |
static VkIndirectCommandsLayoutTokenNVX |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkIndirectCommandsLayoutTokenNVX instance allocated on the specified MemoryStack. |
static int |
nbindingUnit(long struct)
Unsafe version of
bindingUnit(). |
static void |
nbindingUnit(long struct,
int value)
Unsafe version of
bindingUnit. |
static int |
ndivisor(long struct)
Unsafe version of
divisor(). |
static void |
ndivisor(long struct,
int value)
Unsafe version of
divisor. |
static int |
ndynamicCount(long struct)
Unsafe version of
dynamicCount(). |
static void |
ndynamicCount(long struct,
int value)
Unsafe version of
dynamicCount. |
static int |
ntokenType(long struct)
Unsafe version of
tokenType(). |
static void |
ntokenType(long struct,
int value)
Unsafe version of
tokenType. |
VkIndirectCommandsLayoutTokenNVX |
set(int tokenType,
int bindingUnit,
int dynamicCount,
int divisor)
Initializes this struct with the specified values.
|
VkIndirectCommandsLayoutTokenNVX |
set(VkIndirectCommandsLayoutTokenNVX src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
tokenType()
Returns the value of the
tokenType field. |
VkIndirectCommandsLayoutTokenNVX |
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 BINDINGUNIT
public static final int DYNAMICCOUNT
public static final int DIVISOR
public VkIndirectCommandsLayoutTokenNVX(java.nio.ByteBuffer container)
VkIndirectCommandsLayoutTokenNVX 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 int bindingUnit()
bindingUnit field.public int dynamicCount()
dynamicCount field.public int divisor()
divisor field.public VkIndirectCommandsLayoutTokenNVX tokenType(int value)
tokenType field.public VkIndirectCommandsLayoutTokenNVX bindingUnit(int value)
bindingUnit field.public VkIndirectCommandsLayoutTokenNVX dynamicCount(int value)
dynamicCount field.public VkIndirectCommandsLayoutTokenNVX divisor(int value)
divisor field.public VkIndirectCommandsLayoutTokenNVX set(int tokenType, int bindingUnit, int dynamicCount, int divisor)
public VkIndirectCommandsLayoutTokenNVX set(VkIndirectCommandsLayoutTokenNVX src)
src - the source structpublic static VkIndirectCommandsLayoutTokenNVX malloc()
VkIndirectCommandsLayoutTokenNVX instance allocated with memAlloc. The instance must be explicitly freed.public static VkIndirectCommandsLayoutTokenNVX calloc()
VkIndirectCommandsLayoutTokenNVX instance allocated with memCalloc. The instance must be explicitly freed.public static VkIndirectCommandsLayoutTokenNVX create()
VkIndirectCommandsLayoutTokenNVX instance allocated with BufferUtils.public static VkIndirectCommandsLayoutTokenNVX create(long address)
VkIndirectCommandsLayoutTokenNVX instance for the specified memory address.@Nullable public static VkIndirectCommandsLayoutTokenNVX createSafe(long address)
public static VkIndirectCommandsLayoutTokenNVX.Buffer malloc(int capacity)
VkIndirectCommandsLayoutTokenNVX.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkIndirectCommandsLayoutTokenNVX.Buffer calloc(int capacity)
VkIndirectCommandsLayoutTokenNVX.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkIndirectCommandsLayoutTokenNVX.Buffer create(int capacity)
VkIndirectCommandsLayoutTokenNVX.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkIndirectCommandsLayoutTokenNVX.Buffer create(long address, int capacity)
VkIndirectCommandsLayoutTokenNVX.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkIndirectCommandsLayoutTokenNVX.Buffer createSafe(long address, int capacity)
public static VkIndirectCommandsLayoutTokenNVX mallocStack()
VkIndirectCommandsLayoutTokenNVX instance allocated on the thread-local MemoryStack.public static VkIndirectCommandsLayoutTokenNVX callocStack()
VkIndirectCommandsLayoutTokenNVX instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkIndirectCommandsLayoutTokenNVX mallocStack(org.lwjgl.system.MemoryStack stack)
VkIndirectCommandsLayoutTokenNVX instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkIndirectCommandsLayoutTokenNVX callocStack(org.lwjgl.system.MemoryStack stack)
VkIndirectCommandsLayoutTokenNVX instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkIndirectCommandsLayoutTokenNVX.Buffer mallocStack(int capacity)
VkIndirectCommandsLayoutTokenNVX.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkIndirectCommandsLayoutTokenNVX.Buffer callocStack(int capacity)
VkIndirectCommandsLayoutTokenNVX.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkIndirectCommandsLayoutTokenNVX.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkIndirectCommandsLayoutTokenNVX.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkIndirectCommandsLayoutTokenNVX.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkIndirectCommandsLayoutTokenNVX.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 int nbindingUnit(long struct)
bindingUnit().public static int ndynamicCount(long struct)
dynamicCount().public static int ndivisor(long struct)
divisor().public static void ntokenType(long struct,
int value)
tokenType.public static void nbindingUnit(long struct,
int value)
bindingUnit.public static void ndynamicCount(long struct,
int value)
dynamicCount.public static void ndivisor(long struct,
int value)
divisor.Copyright LWJGL. All Rights Reserved. License terms.