Package org.lwjgl.vulkan
Class VkIndirectCommandsTokenNVX
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkIndirectCommandsTokenNVX
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkIndirectCommandsTokenNVX extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying parameters for the reservation of command buffer space.Valid Usage
- The
buffer’s usage flag must have theBUFFER_USAGE_INDIRECT_BUFFER_BITbit set. - The
offsetmust be aligned toVkDeviceGeneratedCommandsLimitsNVX::minCommandsTokenBufferOffsetAlignment.
Valid Usage (Implicit)
tokenTypemust be a validVkIndirectCommandsTokenTypeNVXvaluebuffermust be a validVkBufferhandle
See Also
Member documentation
tokenType– specifies the token command type.buffer– specifies theVkBufferstoring the functional arguments for each squence. These argumetns can be written by the device.offset– specified an offset intobufferwhere the arguments start.
Layout
struct VkIndirectCommandsTokenNVX { VkIndirectCommandsTokenTypeNVX tokenType; VkBuffer buffer; VkDeviceSize offset; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkIndirectCommandsTokenNVX.BufferAn array ofVkIndirectCommandsTokenNVXstructs.
-
Constructor Summary
Constructors Constructor Description VkIndirectCommandsTokenNVX(java.nio.ByteBuffer container)Creates aVkIndirectCommandsTokenNVXinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longbuffer()Returns the value of thebufferfield.VkIndirectCommandsTokenNVXbuffer(long value)Sets the specified value to thebufferfield.static VkIndirectCommandsTokenNVXcalloc()Returns a newVkIndirectCommandsTokenNVXinstance allocated withmemCalloc.static VkIndirectCommandsTokenNVX.Buffercalloc(int capacity)Returns a newVkIndirectCommandsTokenNVX.Bufferinstance allocated withmemCalloc.static VkIndirectCommandsTokenNVXcallocStack()Returns a newVkIndirectCommandsTokenNVXinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkIndirectCommandsTokenNVX.BuffercallocStack(int capacity)Returns a newVkIndirectCommandsTokenNVX.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkIndirectCommandsTokenNVX.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkIndirectCommandsTokenNVX.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkIndirectCommandsTokenNVXcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkIndirectCommandsTokenNVXinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkIndirectCommandsTokenNVXcreate()Returns a newVkIndirectCommandsTokenNVXinstance allocated withBufferUtils.static VkIndirectCommandsTokenNVX.Buffercreate(int capacity)Returns a newVkIndirectCommandsTokenNVX.Bufferinstance allocated withBufferUtils.static VkIndirectCommandsTokenNVXcreate(long address)Returns a newVkIndirectCommandsTokenNVXinstance for the specified memory address.static VkIndirectCommandsTokenNVX.Buffercreate(long address, int capacity)Create aVkIndirectCommandsTokenNVX.Bufferinstance at the specified memory.static VkIndirectCommandsTokenNVXcreateSafe(long address)static VkIndirectCommandsTokenNVX.BuffercreateSafe(long address, int capacity)static VkIndirectCommandsTokenNVXmalloc()Returns a newVkIndirectCommandsTokenNVXinstance allocated withmemAlloc.static VkIndirectCommandsTokenNVX.Buffermalloc(int capacity)Returns a newVkIndirectCommandsTokenNVX.Bufferinstance allocated withmemAlloc.static VkIndirectCommandsTokenNVXmallocStack()Returns a newVkIndirectCommandsTokenNVXinstance allocated on the thread-localMemoryStack.static VkIndirectCommandsTokenNVX.BuffermallocStack(int capacity)Returns a newVkIndirectCommandsTokenNVX.Bufferinstance allocated on the thread-localMemoryStack.static VkIndirectCommandsTokenNVX.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkIndirectCommandsTokenNVX.Bufferinstance allocated on the specifiedMemoryStack.static VkIndirectCommandsTokenNVXmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkIndirectCommandsTokenNVXinstance allocated on the specifiedMemoryStack.static longnbuffer(long struct)Unsafe version ofbuffer().static voidnbuffer(long struct, long value)Unsafe version ofbuffer.static longnoffset(long struct)Unsafe version ofoffset().static voidnoffset(long struct, long value)Unsafe version ofoffset.static intntokenType(long struct)Unsafe version oftokenType().static voidntokenType(long struct, int value)Unsafe version oftokenType.longoffset()Returns the value of theoffsetfield.VkIndirectCommandsTokenNVXoffset(long value)Sets the specified value to theoffsetfield.VkIndirectCommandsTokenNVXset(int tokenType, long buffer, long offset)Initializes this struct with the specified values.VkIndirectCommandsTokenNVXset(VkIndirectCommandsTokenNVX src)Copies the specified struct data to this struct.intsizeof()inttokenType()Returns the value of thetokenTypefield.VkIndirectCommandsTokenNVXtokenType(int value)Sets the specified value to thetokenTypefield.
-
-
-
Constructor Detail
-
VkIndirectCommandsTokenNVX
public VkIndirectCommandsTokenNVX(java.nio.ByteBuffer container)
Creates aVkIndirectCommandsTokenNVXinstance 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.
-
buffer
public long buffer()
Returns the value of thebufferfield.
-
offset
public long offset()
Returns the value of theoffsetfield.
-
tokenType
public VkIndirectCommandsTokenNVX tokenType(int value)
Sets the specified value to thetokenTypefield.
-
buffer
public VkIndirectCommandsTokenNVX buffer(long value)
Sets the specified value to thebufferfield.
-
offset
public VkIndirectCommandsTokenNVX offset(long value)
Sets the specified value to theoffsetfield.
-
set
public VkIndirectCommandsTokenNVX set(int tokenType, long buffer, long offset)
Initializes this struct with the specified values.
-
set
public VkIndirectCommandsTokenNVX set(VkIndirectCommandsTokenNVX src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkIndirectCommandsTokenNVX malloc()
Returns a newVkIndirectCommandsTokenNVXinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkIndirectCommandsTokenNVX calloc()
Returns a newVkIndirectCommandsTokenNVXinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkIndirectCommandsTokenNVX create()
Returns a newVkIndirectCommandsTokenNVXinstance allocated withBufferUtils.
-
create
public static VkIndirectCommandsTokenNVX create(long address)
Returns a newVkIndirectCommandsTokenNVXinstance for the specified memory address.
-
createSafe
@Nullable public static VkIndirectCommandsTokenNVX createSafe(long address)
-
malloc
public static VkIndirectCommandsTokenNVX.Buffer malloc(int capacity)
Returns a newVkIndirectCommandsTokenNVX.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkIndirectCommandsTokenNVX.Buffer calloc(int capacity)
Returns a newVkIndirectCommandsTokenNVX.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkIndirectCommandsTokenNVX.Buffer create(int capacity)
Returns a newVkIndirectCommandsTokenNVX.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkIndirectCommandsTokenNVX.Buffer create(long address, int capacity)
Create aVkIndirectCommandsTokenNVX.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkIndirectCommandsTokenNVX.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkIndirectCommandsTokenNVX mallocStack()
Returns a newVkIndirectCommandsTokenNVXinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkIndirectCommandsTokenNVX callocStack()
Returns a newVkIndirectCommandsTokenNVXinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkIndirectCommandsTokenNVX mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkIndirectCommandsTokenNVXinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkIndirectCommandsTokenNVX callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkIndirectCommandsTokenNVXinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkIndirectCommandsTokenNVX.Buffer mallocStack(int capacity)
Returns a newVkIndirectCommandsTokenNVX.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkIndirectCommandsTokenNVX.Buffer callocStack(int capacity)
Returns a newVkIndirectCommandsTokenNVX.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkIndirectCommandsTokenNVX.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkIndirectCommandsTokenNVX.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkIndirectCommandsTokenNVX.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkIndirectCommandsTokenNVX.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().
-
nbuffer
public static long nbuffer(long struct)
Unsafe version ofbuffer().
-
noffset
public static long noffset(long struct)
Unsafe version ofoffset().
-
ntokenType
public static void ntokenType(long struct, int value)Unsafe version oftokenType.
-
nbuffer
public static void nbuffer(long struct, long value)Unsafe version ofbuffer.
-
noffset
public static void noffset(long struct, long value)Unsafe version ofoffset.
-
-