Package org.lwjgl.vulkan
Class VkIndirectCommandsStreamNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkIndirectCommandsStreamNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkIndirectCommandsStreamNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying input streams for generated command tokens.Valid Usage
- The
buffer’s usage flag must have theBUFFER_USAGE_INDIRECT_BUFFER_BITbit set - The
offsetmust be aligned toVkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV::minIndirectCommandsBufferOffsetAlignment - If
bufferis non-sparse then it must be bound completely and contiguously to a singleVkDeviceMemoryobject
Valid Usage (Implicit)
buffermust be a validVkBufferhandle
See Also
Layout
struct VkIndirectCommandsStreamNV { VkBufferbuffer(); VkDeviceSizeoffset(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkIndirectCommandsStreamNV.BufferAn array ofVkIndirectCommandsStreamNVstructs.
-
Constructor Summary
Constructors Constructor Description VkIndirectCommandsStreamNV(java.nio.ByteBuffer container)Creates aVkIndirectCommandsStreamNVinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longbuffer()specifies theVkBufferstoring the functional arguments for each sequence.VkIndirectCommandsStreamNVbuffer(long value)Sets the specified value to thebuffer()field.static VkIndirectCommandsStreamNVcalloc()Returns a newVkIndirectCommandsStreamNVinstance allocated withmemCalloc.static VkIndirectCommandsStreamNV.Buffercalloc(int capacity)Returns a newVkIndirectCommandsStreamNV.Bufferinstance allocated withmemCalloc.static VkIndirectCommandsStreamNV.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkIndirectCommandsStreamNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkIndirectCommandsStreamNVcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkIndirectCommandsStreamNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkIndirectCommandsStreamNVcreate()Returns a newVkIndirectCommandsStreamNVinstance allocated withBufferUtils.static VkIndirectCommandsStreamNV.Buffercreate(int capacity)Returns a newVkIndirectCommandsStreamNV.Bufferinstance allocated withBufferUtils.static VkIndirectCommandsStreamNVcreate(long address)Returns a newVkIndirectCommandsStreamNVinstance for the specified memory address.static VkIndirectCommandsStreamNV.Buffercreate(long address, int capacity)Create aVkIndirectCommandsStreamNV.Bufferinstance at the specified memory.static VkIndirectCommandsStreamNVcreateSafe(long address)static VkIndirectCommandsStreamNV.BuffercreateSafe(long address, int capacity)static VkIndirectCommandsStreamNVmalloc()Returns a newVkIndirectCommandsStreamNVinstance allocated withmemAlloc.static VkIndirectCommandsStreamNV.Buffermalloc(int capacity)Returns a newVkIndirectCommandsStreamNV.Bufferinstance allocated withmemAlloc.static VkIndirectCommandsStreamNV.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkIndirectCommandsStreamNV.Bufferinstance allocated on the specifiedMemoryStack.static VkIndirectCommandsStreamNVmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkIndirectCommandsStreamNVinstance 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.longoffset()specified an offset intobufferwhere the arguments start.VkIndirectCommandsStreamNVoffset(long value)Sets the specified value to theoffset()field.VkIndirectCommandsStreamNVset(long buffer, long offset)Initializes this struct with the specified values.VkIndirectCommandsStreamNVset(VkIndirectCommandsStreamNV src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
VkIndirectCommandsStreamNV
public VkIndirectCommandsStreamNV(java.nio.ByteBuffer container)
Creates aVkIndirectCommandsStreamNVinstance 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
-
buffer
public long buffer()
specifies theVkBufferstoring the functional arguments for each sequence. These arguments can be written by the device.
-
offset
public long offset()
specified an offset intobufferwhere the arguments start.
-
buffer
public VkIndirectCommandsStreamNV buffer(long value)
Sets the specified value to thebuffer()field.
-
offset
public VkIndirectCommandsStreamNV offset(long value)
Sets the specified value to theoffset()field.
-
set
public VkIndirectCommandsStreamNV set(long buffer, long offset)
Initializes this struct with the specified values.
-
set
public VkIndirectCommandsStreamNV set(VkIndirectCommandsStreamNV src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkIndirectCommandsStreamNV malloc()
Returns a newVkIndirectCommandsStreamNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkIndirectCommandsStreamNV calloc()
Returns a newVkIndirectCommandsStreamNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkIndirectCommandsStreamNV create()
Returns a newVkIndirectCommandsStreamNVinstance allocated withBufferUtils.
-
create
public static VkIndirectCommandsStreamNV create(long address)
Returns a newVkIndirectCommandsStreamNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkIndirectCommandsStreamNV createSafe(long address)
-
malloc
public static VkIndirectCommandsStreamNV.Buffer malloc(int capacity)
Returns a newVkIndirectCommandsStreamNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkIndirectCommandsStreamNV.Buffer calloc(int capacity)
Returns a newVkIndirectCommandsStreamNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkIndirectCommandsStreamNV.Buffer create(int capacity)
Returns a newVkIndirectCommandsStreamNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkIndirectCommandsStreamNV.Buffer create(long address, int capacity)
Create aVkIndirectCommandsStreamNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkIndirectCommandsStreamNV.Buffer createSafe(long address, int capacity)
-
malloc
public static VkIndirectCommandsStreamNV malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkIndirectCommandsStreamNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkIndirectCommandsStreamNV calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkIndirectCommandsStreamNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkIndirectCommandsStreamNV.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkIndirectCommandsStreamNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkIndirectCommandsStreamNV.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkIndirectCommandsStreamNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nbuffer
public static long nbuffer(long struct)
Unsafe version ofbuffer().
-
noffset
public static long noffset(long struct)
Unsafe version ofoffset().
-
nbuffer
public static void nbuffer(long struct, long value)Unsafe version ofbuffer.
-
noffset
public static void noffset(long struct, long value)Unsafe version ofoffset.
-
-