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.NativeResource
Struct specifying the details of an indirect command layout token.Valid Usage
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.
Valid Usage (Implicit)
tokenType
must be a validVkIndirectCommandsTokenTypeNVX
value
See Also
VkIndirectCommandsLayoutCreateInfoNVX
Member 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 class
VkIndirectCommandsLayoutTokenNVX.Buffer
An array ofVkIndirectCommandsLayoutTokenNVX
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
BINDINGUNIT
DIVISOR
DYNAMICCOUNTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
TOKENTYPE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkIndirectCommandsLayoutTokenNVX(java.nio.ByteBuffer container)
Creates aVkIndirectCommandsLayoutTokenNVX
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
bindingUnit()
Returns the value of thebindingUnit
field.VkIndirectCommandsLayoutTokenNVX
bindingUnit(int value)
Sets the specified value to thebindingUnit
field.static VkIndirectCommandsLayoutTokenNVX
calloc()
Returns a newVkIndirectCommandsLayoutTokenNVX
instance allocated withmemCalloc
.static VkIndirectCommandsLayoutTokenNVX.Buffer
calloc(int capacity)
Returns a newVkIndirectCommandsLayoutTokenNVX.Buffer
instance allocated withmemCalloc
.static VkIndirectCommandsLayoutTokenNVX
callocStack()
Returns a newVkIndirectCommandsLayoutTokenNVX
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkIndirectCommandsLayoutTokenNVX.Buffer
callocStack(int capacity)
Returns a newVkIndirectCommandsLayoutTokenNVX.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkIndirectCommandsLayoutTokenNVX.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkIndirectCommandsLayoutTokenNVX.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkIndirectCommandsLayoutTokenNVX
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkIndirectCommandsLayoutTokenNVX
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkIndirectCommandsLayoutTokenNVX
create()
Returns a newVkIndirectCommandsLayoutTokenNVX
instance allocated withBufferUtils
.static VkIndirectCommandsLayoutTokenNVX.Buffer
create(int capacity)
Returns a newVkIndirectCommandsLayoutTokenNVX.Buffer
instance allocated withBufferUtils
.static VkIndirectCommandsLayoutTokenNVX
create(long address)
Returns a newVkIndirectCommandsLayoutTokenNVX
instance for the specified memory address.static VkIndirectCommandsLayoutTokenNVX.Buffer
create(long address, int capacity)
Create aVkIndirectCommandsLayoutTokenNVX.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 thedivisor
field.VkIndirectCommandsLayoutTokenNVX
divisor(int value)
Sets the specified value to thedivisor
field.int
dynamicCount()
Returns the value of thedynamicCount
field.VkIndirectCommandsLayoutTokenNVX
dynamicCount(int value)
Sets the specified value to thedynamicCount
field.static VkIndirectCommandsLayoutTokenNVX
malloc()
Returns a newVkIndirectCommandsLayoutTokenNVX
instance allocated withmemAlloc
.static VkIndirectCommandsLayoutTokenNVX.Buffer
malloc(int capacity)
Returns a newVkIndirectCommandsLayoutTokenNVX.Buffer
instance allocated withmemAlloc
.static VkIndirectCommandsLayoutTokenNVX
mallocStack()
Returns a newVkIndirectCommandsLayoutTokenNVX
instance allocated on the thread-localMemoryStack
.static VkIndirectCommandsLayoutTokenNVX.Buffer
mallocStack(int capacity)
Returns a newVkIndirectCommandsLayoutTokenNVX.Buffer
instance allocated on the thread-localMemoryStack
.static VkIndirectCommandsLayoutTokenNVX.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkIndirectCommandsLayoutTokenNVX.Buffer
instance allocated on the specifiedMemoryStack
.static VkIndirectCommandsLayoutTokenNVX
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkIndirectCommandsLayoutTokenNVX
instance allocated on the specifiedMemoryStack
.static int
nbindingUnit(long struct)
Unsafe version ofbindingUnit()
.static void
nbindingUnit(long struct, int value)
Unsafe version ofbindingUnit
.static int
ndivisor(long struct)
Unsafe version ofdivisor()
.static void
ndivisor(long struct, int value)
Unsafe version ofdivisor
.static int
ndynamicCount(long struct)
Unsafe version ofdynamicCount()
.static void
ndynamicCount(long struct, int value)
Unsafe version ofdynamicCount
.static int
ntokenType(long struct)
Unsafe version oftokenType()
.static void
ntokenType(long struct, int value)
Unsafe version oftokenType
.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 thetokenType
field.VkIndirectCommandsLayoutTokenNVX
tokenType(int value)
Sets the specified value to thetokenType
field.
-
-
-
Constructor Detail
-
VkIndirectCommandsLayoutTokenNVX
public VkIndirectCommandsLayoutTokenNVX(java.nio.ByteBuffer container)
Creates aVkIndirectCommandsLayoutTokenNVX
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
tokenType
public int tokenType()
Returns the value of thetokenType
field.
-
bindingUnit
public int bindingUnit()
Returns the value of thebindingUnit
field.
-
dynamicCount
public int dynamicCount()
Returns the value of thedynamicCount
field.
-
divisor
public int divisor()
Returns the value of thedivisor
field.
-
tokenType
public VkIndirectCommandsLayoutTokenNVX tokenType(int value)
Sets the specified value to thetokenType
field.
-
bindingUnit
public VkIndirectCommandsLayoutTokenNVX bindingUnit(int value)
Sets the specified value to thebindingUnit
field.
-
dynamicCount
public VkIndirectCommandsLayoutTokenNVX dynamicCount(int value)
Sets the specified value to thedynamicCount
field.
-
divisor
public VkIndirectCommandsLayoutTokenNVX divisor(int value)
Sets the specified value to thedivisor
field.
-
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 newVkIndirectCommandsLayoutTokenNVX
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkIndirectCommandsLayoutTokenNVX calloc()
Returns a newVkIndirectCommandsLayoutTokenNVX
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkIndirectCommandsLayoutTokenNVX create()
Returns a newVkIndirectCommandsLayoutTokenNVX
instance allocated withBufferUtils
.
-
create
public static VkIndirectCommandsLayoutTokenNVX create(long address)
Returns a newVkIndirectCommandsLayoutTokenNVX
instance for the specified memory address.
-
createSafe
@Nullable public static VkIndirectCommandsLayoutTokenNVX createSafe(long address)
-
malloc
public static VkIndirectCommandsLayoutTokenNVX.Buffer malloc(int capacity)
Returns a newVkIndirectCommandsLayoutTokenNVX.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkIndirectCommandsLayoutTokenNVX.Buffer calloc(int capacity)
Returns a newVkIndirectCommandsLayoutTokenNVX.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkIndirectCommandsLayoutTokenNVX.Buffer create(int capacity)
Returns a newVkIndirectCommandsLayoutTokenNVX.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkIndirectCommandsLayoutTokenNVX.Buffer create(long address, int capacity)
Create aVkIndirectCommandsLayoutTokenNVX.Buffer
instance 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 newVkIndirectCommandsLayoutTokenNVX
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkIndirectCommandsLayoutTokenNVX callocStack()
Returns a newVkIndirectCommandsLayoutTokenNVX
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkIndirectCommandsLayoutTokenNVX mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkIndirectCommandsLayoutTokenNVX
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkIndirectCommandsLayoutTokenNVX callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkIndirectCommandsLayoutTokenNVX
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkIndirectCommandsLayoutTokenNVX.Buffer callocStack(int capacity)
Returns a newVkIndirectCommandsLayoutTokenNVX.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-
-