Package org.lwjgl.vulkan
Class VkBindVertexBufferIndirectCommandNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkBindVertexBufferIndirectCommandNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkBindVertexBufferIndirectCommandNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying input data for a single vertex buffer command token.Valid Usage
- The buffer’s usage flag from which the address was acquired must have the
BUFFER_USAGE_VERTEX_BUFFER_BITbit set - Each element of the buffer from which the address was acquired and that is non-sparse must be bound completely and contiguously to a single
VkDeviceMemoryobject
Layout
struct VkBindVertexBufferIndirectCommandNV { VkDeviceAddressbufferAddress(); uint32_tsize(); uint32_tstride(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkBindVertexBufferIndirectCommandNV.BufferAn array ofVkBindVertexBufferIndirectCommandNVstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intBUFFERADDRESS
SIZEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTRIDEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkBindVertexBufferIndirectCommandNV(java.nio.ByteBuffer container)Creates aVkBindVertexBufferIndirectCommandNVinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longbufferAddress()specifies a physical address of theVkBufferused as vertex input binding.VkBindVertexBufferIndirectCommandNVbufferAddress(long value)Sets the specified value to thebufferAddress()field.static VkBindVertexBufferIndirectCommandNVcalloc()Returns a newVkBindVertexBufferIndirectCommandNVinstance allocated withmemCalloc.static VkBindVertexBufferIndirectCommandNV.Buffercalloc(int capacity)Returns a newVkBindVertexBufferIndirectCommandNV.Bufferinstance allocated withmemCalloc.static VkBindVertexBufferIndirectCommandNV.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBindVertexBufferIndirectCommandNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBindVertexBufferIndirectCommandNVcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkBindVertexBufferIndirectCommandNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBindVertexBufferIndirectCommandNVcreate()Returns a newVkBindVertexBufferIndirectCommandNVinstance allocated withBufferUtils.static VkBindVertexBufferIndirectCommandNV.Buffercreate(int capacity)Returns a newVkBindVertexBufferIndirectCommandNV.Bufferinstance allocated withBufferUtils.static VkBindVertexBufferIndirectCommandNVcreate(long address)Returns a newVkBindVertexBufferIndirectCommandNVinstance for the specified memory address.static VkBindVertexBufferIndirectCommandNV.Buffercreate(long address, int capacity)Create aVkBindVertexBufferIndirectCommandNV.Bufferinstance at the specified memory.static VkBindVertexBufferIndirectCommandNVcreateSafe(long address)static VkBindVertexBufferIndirectCommandNV.BuffercreateSafe(long address, int capacity)static VkBindVertexBufferIndirectCommandNVmalloc()Returns a newVkBindVertexBufferIndirectCommandNVinstance allocated withmemAlloc.static VkBindVertexBufferIndirectCommandNV.Buffermalloc(int capacity)Returns a newVkBindVertexBufferIndirectCommandNV.Bufferinstance allocated withmemAlloc.static VkBindVertexBufferIndirectCommandNV.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBindVertexBufferIndirectCommandNV.Bufferinstance allocated on the specifiedMemoryStack.static VkBindVertexBufferIndirectCommandNVmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkBindVertexBufferIndirectCommandNVinstance allocated on the specifiedMemoryStack.static longnbufferAddress(long struct)Unsafe version ofbufferAddress().static voidnbufferAddress(long struct, long value)Unsafe version ofbufferAddress.static intnsize(long struct)Unsafe version ofsize().static voidnsize(long struct, int value)Unsafe version ofsize.static intnstride(long struct)Unsafe version ofstride().static voidnstride(long struct, int value)Unsafe version ofstride.VkBindVertexBufferIndirectCommandNVset(long bufferAddress, int size, int stride)Initializes this struct with the specified values.VkBindVertexBufferIndirectCommandNVset(VkBindVertexBufferIndirectCommandNV src)Copies the specified struct data to this struct.intsize()the byte size range which is available for this operation from the provided address.VkBindVertexBufferIndirectCommandNVsize(int value)Sets the specified value to thesize()field.intsizeof()intstride()the byte size stride for this vertex input binding as inVkVertexInputBindingDescription::stride.VkBindVertexBufferIndirectCommandNVstride(int value)Sets the specified value to thestride()field.
-
-
-
Constructor Detail
-
VkBindVertexBufferIndirectCommandNV
public VkBindVertexBufferIndirectCommandNV(java.nio.ByteBuffer container)
Creates aVkBindVertexBufferIndirectCommandNVinstance 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
-
bufferAddress
public long bufferAddress()
specifies a physical address of theVkBufferused as vertex input binding.
-
size
public int size()
the byte size range which is available for this operation from the provided address.
-
stride
public int stride()
the byte size stride for this vertex input binding as inVkVertexInputBindingDescription::stride. It is only used ifVkIndirectCommandsLayoutTokenNV::vertexDynamicStridewas set, otherwise the stride is inherited from the current bound graphics pipeline.
-
bufferAddress
public VkBindVertexBufferIndirectCommandNV bufferAddress(long value)
Sets the specified value to thebufferAddress()field.
-
size
public VkBindVertexBufferIndirectCommandNV size(int value)
Sets the specified value to thesize()field.
-
stride
public VkBindVertexBufferIndirectCommandNV stride(int value)
Sets the specified value to thestride()field.
-
set
public VkBindVertexBufferIndirectCommandNV set(long bufferAddress, int size, int stride)
Initializes this struct with the specified values.
-
set
public VkBindVertexBufferIndirectCommandNV set(VkBindVertexBufferIndirectCommandNV src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkBindVertexBufferIndirectCommandNV malloc()
Returns a newVkBindVertexBufferIndirectCommandNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkBindVertexBufferIndirectCommandNV calloc()
Returns a newVkBindVertexBufferIndirectCommandNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkBindVertexBufferIndirectCommandNV create()
Returns a newVkBindVertexBufferIndirectCommandNVinstance allocated withBufferUtils.
-
create
public static VkBindVertexBufferIndirectCommandNV create(long address)
Returns a newVkBindVertexBufferIndirectCommandNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkBindVertexBufferIndirectCommandNV createSafe(long address)
-
malloc
public static VkBindVertexBufferIndirectCommandNV.Buffer malloc(int capacity)
Returns a newVkBindVertexBufferIndirectCommandNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkBindVertexBufferIndirectCommandNV.Buffer calloc(int capacity)
Returns a newVkBindVertexBufferIndirectCommandNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkBindVertexBufferIndirectCommandNV.Buffer create(int capacity)
Returns a newVkBindVertexBufferIndirectCommandNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkBindVertexBufferIndirectCommandNV.Buffer create(long address, int capacity)
Create aVkBindVertexBufferIndirectCommandNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkBindVertexBufferIndirectCommandNV.Buffer createSafe(long address, int capacity)
-
malloc
public static VkBindVertexBufferIndirectCommandNV malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkBindVertexBufferIndirectCommandNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkBindVertexBufferIndirectCommandNV calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkBindVertexBufferIndirectCommandNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkBindVertexBufferIndirectCommandNV.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBindVertexBufferIndirectCommandNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkBindVertexBufferIndirectCommandNV.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBindVertexBufferIndirectCommandNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nbufferAddress
public static long nbufferAddress(long struct)
Unsafe version ofbufferAddress().
-
nsize
public static int nsize(long struct)
Unsafe version ofsize().
-
nstride
public static int nstride(long struct)
Unsafe version ofstride().
-
nbufferAddress
public static void nbufferAddress(long struct, long value)Unsafe version ofbufferAddress.
-
nsize
public static void nsize(long struct, int value)Unsafe version ofsize.
-
nstride
public static void nstride(long struct, int value)Unsafe version ofstride.
-
-