Package org.lwjgl.vulkan
Class VkIndirectCommandsLayoutTokenNVX
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkIndirectCommandsLayoutTokenNVX
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkIndirectCommandsLayoutTokenNVX extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStruct specifying the details of an indirect command layout token.Valid Usage
bindingUnitmust stay within device supported limits for the appropriate commands.dynamicCountmust stay within device supported limits for the appropriate commands.divisormust be greater than 0 and a power of two.
Valid Usage (Implicit)
tokenTypemust be a validVkIndirectCommandsTokenTypeNVXvalue
See Also
VkIndirectCommandsLayoutCreateInfoNVXMember documentation
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.
Layout
struct VkIndirectCommandsLayoutTokenNVX { VkIndirectCommandsTokenTypeNVX tokenType; uint32_t bindingUnit; uint32_t dynamicCount; uint32_t divisor; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkIndirectCommandsLayoutTokenNVX.BufferAn array ofVkIndirectCommandsLayoutTokenNVXstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intBINDINGUNIT
DIVISOR
DYNAMICCOUNTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTOKENTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkIndirectCommandsLayoutTokenNVX(java.nio.ByteBuffer container)Creates aVkIndirectCommandsLayoutTokenNVXinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intbindingUnit()Returns the value of thebindingUnitfield.VkIndirectCommandsLayoutTokenNVXbindingUnit(int value)Sets the specified value to thebindingUnitfield.static VkIndirectCommandsLayoutTokenNVXcalloc()Returns a newVkIndirectCommandsLayoutTokenNVXinstance allocated withmemCalloc.static VkIndirectCommandsLayoutTokenNVX.Buffercalloc(int capacity)Returns a newVkIndirectCommandsLayoutTokenNVX.Bufferinstance allocated withmemCalloc.static VkIndirectCommandsLayoutTokenNVXcallocStack()Returns a newVkIndirectCommandsLayoutTokenNVXinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkIndirectCommandsLayoutTokenNVX.BuffercallocStack(int capacity)Returns a newVkIndirectCommandsLayoutTokenNVX.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkIndirectCommandsLayoutTokenNVX.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkIndirectCommandsLayoutTokenNVX.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkIndirectCommandsLayoutTokenNVXcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkIndirectCommandsLayoutTokenNVXinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkIndirectCommandsLayoutTokenNVXcreate()Returns a newVkIndirectCommandsLayoutTokenNVXinstance allocated withBufferUtils.static VkIndirectCommandsLayoutTokenNVX.Buffercreate(int capacity)Returns a newVkIndirectCommandsLayoutTokenNVX.Bufferinstance allocated withBufferUtils.static VkIndirectCommandsLayoutTokenNVXcreate(long address)Returns a newVkIndirectCommandsLayoutTokenNVXinstance for the specified memory address.static VkIndirectCommandsLayoutTokenNVX.Buffercreate(long address, int capacity)Create aVkIndirectCommandsLayoutTokenNVX.Bufferinstance at the specified memory.static VkIndirectCommandsLayoutTokenNVXcreateSafe(long address)static VkIndirectCommandsLayoutTokenNVX.BuffercreateSafe(long address, int capacity)intdivisor()Returns the value of thedivisorfield.VkIndirectCommandsLayoutTokenNVXdivisor(int value)Sets the specified value to thedivisorfield.intdynamicCount()Returns the value of thedynamicCountfield.VkIndirectCommandsLayoutTokenNVXdynamicCount(int value)Sets the specified value to thedynamicCountfield.static VkIndirectCommandsLayoutTokenNVXmalloc()Returns a newVkIndirectCommandsLayoutTokenNVXinstance allocated withmemAlloc.static VkIndirectCommandsLayoutTokenNVX.Buffermalloc(int capacity)Returns a newVkIndirectCommandsLayoutTokenNVX.Bufferinstance allocated withmemAlloc.static VkIndirectCommandsLayoutTokenNVXmallocStack()Returns a newVkIndirectCommandsLayoutTokenNVXinstance allocated on the thread-localMemoryStack.static VkIndirectCommandsLayoutTokenNVX.BuffermallocStack(int capacity)Returns a newVkIndirectCommandsLayoutTokenNVX.Bufferinstance allocated on the thread-localMemoryStack.static VkIndirectCommandsLayoutTokenNVX.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkIndirectCommandsLayoutTokenNVX.Bufferinstance allocated on the specifiedMemoryStack.static VkIndirectCommandsLayoutTokenNVXmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkIndirectCommandsLayoutTokenNVXinstance allocated on the specifiedMemoryStack.static intnbindingUnit(long struct)Unsafe version ofbindingUnit().static voidnbindingUnit(long struct, int value)Unsafe version ofbindingUnit.static intndivisor(long struct)Unsafe version ofdivisor().static voidndivisor(long struct, int value)Unsafe version ofdivisor.static intndynamicCount(long struct)Unsafe version ofdynamicCount().static voidndynamicCount(long struct, int value)Unsafe version ofdynamicCount.static intntokenType(long struct)Unsafe version oftokenType().static voidntokenType(long struct, int value)Unsafe version oftokenType.VkIndirectCommandsLayoutTokenNVXset(int tokenType, int bindingUnit, int dynamicCount, int divisor)Initializes this struct with the specified values.VkIndirectCommandsLayoutTokenNVXset(VkIndirectCommandsLayoutTokenNVX src)Copies the specified struct data to this struct.intsizeof()inttokenType()Returns the value of thetokenTypefield.VkIndirectCommandsLayoutTokenNVXtokenType(int value)Sets the specified value to thetokenTypefield.
-
-
-
Constructor Detail
-
VkIndirectCommandsLayoutTokenNVX
public VkIndirectCommandsLayoutTokenNVX(java.nio.ByteBuffer container)
Creates aVkIndirectCommandsLayoutTokenNVXinstance at the current position of the specifiedByteBuffercontainer. 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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
tokenType
public int tokenType()
Returns the value of thetokenTypefield.
-
bindingUnit
public int bindingUnit()
Returns the value of thebindingUnitfield.
-
dynamicCount
public int dynamicCount()
Returns the value of thedynamicCountfield.
-
divisor
public int divisor()
Returns the value of thedivisorfield.
-
tokenType
public VkIndirectCommandsLayoutTokenNVX tokenType(int value)
Sets the specified value to thetokenTypefield.
-
bindingUnit
public VkIndirectCommandsLayoutTokenNVX bindingUnit(int value)
Sets the specified value to thebindingUnitfield.
-
dynamicCount
public VkIndirectCommandsLayoutTokenNVX dynamicCount(int value)
Sets the specified value to thedynamicCountfield.
-
divisor
public VkIndirectCommandsLayoutTokenNVX divisor(int value)
Sets the specified value to thedivisorfield.
-
set
public VkIndirectCommandsLayoutTokenNVX set(int tokenType, int bindingUnit, int dynamicCount, int divisor)
Initializes this struct with the specified values.
-
set
public VkIndirectCommandsLayoutTokenNVX set(VkIndirectCommandsLayoutTokenNVX src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkIndirectCommandsLayoutTokenNVX malloc()
Returns a newVkIndirectCommandsLayoutTokenNVXinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkIndirectCommandsLayoutTokenNVX calloc()
Returns a newVkIndirectCommandsLayoutTokenNVXinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkIndirectCommandsLayoutTokenNVX create()
Returns a newVkIndirectCommandsLayoutTokenNVXinstance allocated withBufferUtils.
-
create
public static VkIndirectCommandsLayoutTokenNVX create(long address)
Returns a newVkIndirectCommandsLayoutTokenNVXinstance for the specified memory address.
-
createSafe
@Nullable public static VkIndirectCommandsLayoutTokenNVX createSafe(long address)
-
malloc
public static VkIndirectCommandsLayoutTokenNVX.Buffer malloc(int capacity)
Returns a newVkIndirectCommandsLayoutTokenNVX.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkIndirectCommandsLayoutTokenNVX.Buffer calloc(int capacity)
Returns a newVkIndirectCommandsLayoutTokenNVX.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkIndirectCommandsLayoutTokenNVX.Buffer create(int capacity)
Returns a newVkIndirectCommandsLayoutTokenNVX.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkIndirectCommandsLayoutTokenNVX.Buffer create(long address, int capacity)
Create aVkIndirectCommandsLayoutTokenNVX.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkIndirectCommandsLayoutTokenNVX.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkIndirectCommandsLayoutTokenNVX mallocStack()
Returns a newVkIndirectCommandsLayoutTokenNVXinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkIndirectCommandsLayoutTokenNVX callocStack()
Returns a newVkIndirectCommandsLayoutTokenNVXinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkIndirectCommandsLayoutTokenNVX mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkIndirectCommandsLayoutTokenNVXinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkIndirectCommandsLayoutTokenNVX callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkIndirectCommandsLayoutTokenNVXinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkIndirectCommandsLayoutTokenNVX.Buffer mallocStack(int capacity)
Returns a newVkIndirectCommandsLayoutTokenNVX.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkIndirectCommandsLayoutTokenNVX.Buffer callocStack(int capacity)
Returns a newVkIndirectCommandsLayoutTokenNVX.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkIndirectCommandsLayoutTokenNVX.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkIndirectCommandsLayoutTokenNVX.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkIndirectCommandsLayoutTokenNVX.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkIndirectCommandsLayoutTokenNVX.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ntokenType
public static int ntokenType(long struct)
Unsafe version oftokenType().
-
nbindingUnit
public static int nbindingUnit(long struct)
Unsafe version ofbindingUnit().
-
ndynamicCount
public static int ndynamicCount(long struct)
Unsafe version ofdynamicCount().
-
ndivisor
public static int ndivisor(long struct)
Unsafe version ofdivisor().
-
ntokenType
public static void ntokenType(long struct, int value)Unsafe version oftokenType.
-
nbindingUnit
public static void nbindingUnit(long struct, int value)Unsafe version ofbindingUnit.
-
ndynamicCount
public static void ndynamicCount(long struct, int value)Unsafe version ofdynamicCount.
-
ndivisor
public static void ndivisor(long struct, int value)Unsafe version ofdivisor.
-
-