Package org.lwjgl.vulkan
Class VkMultiDrawInfoEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkMultiDrawInfoEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkMultiDrawInfoEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying a multi-draw command.Description
The members of
VkMultiDrawInfoEXThave the same meaning as thefirstVertexandvertexCountparameters inCmdDraw.See Also
Layout
struct VkMultiDrawInfoEXT { uint32_tfirstVertex(); uint32_tvertexCount(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkMultiDrawInfoEXT.BufferAn array ofVkMultiDrawInfoEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intFIRSTVERTEXThe struct member offsets.static intSIZEOFThe struct size in bytes.static intVERTEXCOUNTThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkMultiDrawInfoEXT(java.nio.ByteBuffer container)Creates aVkMultiDrawInfoEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkMultiDrawInfoEXTcalloc()Returns a newVkMultiDrawInfoEXTinstance allocated withmemCalloc.static VkMultiDrawInfoEXT.Buffercalloc(int capacity)Returns a newVkMultiDrawInfoEXT.Bufferinstance allocated withmemCalloc.static VkMultiDrawInfoEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkMultiDrawInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkMultiDrawInfoEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkMultiDrawInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkMultiDrawInfoEXTcreate()Returns a newVkMultiDrawInfoEXTinstance allocated withBufferUtils.static VkMultiDrawInfoEXT.Buffercreate(int capacity)Returns a newVkMultiDrawInfoEXT.Bufferinstance allocated withBufferUtils.static VkMultiDrawInfoEXTcreate(long address)Returns a newVkMultiDrawInfoEXTinstance for the specified memory address.static VkMultiDrawInfoEXT.Buffercreate(long address, int capacity)Create aVkMultiDrawInfoEXT.Bufferinstance at the specified memory.static VkMultiDrawInfoEXTcreateSafe(long address)static VkMultiDrawInfoEXT.BuffercreateSafe(long address, int capacity)intfirstVertex()the first vertex to draw.VkMultiDrawInfoEXTfirstVertex(int value)Sets the specified value to thefirstVertex()field.static VkMultiDrawInfoEXTmalloc()Returns a newVkMultiDrawInfoEXTinstance allocated withmemAlloc.static VkMultiDrawInfoEXT.Buffermalloc(int capacity)Returns a newVkMultiDrawInfoEXT.Bufferinstance allocated withmemAlloc.static VkMultiDrawInfoEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkMultiDrawInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkMultiDrawInfoEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkMultiDrawInfoEXTinstance allocated on the specifiedMemoryStack.static intnfirstVertex(long struct)Unsafe version offirstVertex().static voidnfirstVertex(long struct, int value)Unsafe version offirstVertex.static intnvertexCount(long struct)Unsafe version ofvertexCount().static voidnvertexCount(long struct, int value)Unsafe version ofvertexCount.VkMultiDrawInfoEXTset(int firstVertex, int vertexCount)Initializes this struct with the specified values.VkMultiDrawInfoEXTset(VkMultiDrawInfoEXT src)Copies the specified struct data to this struct.intsizeof()intvertexCount()the number of vertices to draw.VkMultiDrawInfoEXTvertexCount(int value)Sets the specified value to thevertexCount()field.
-
-
-
Constructor Detail
-
VkMultiDrawInfoEXT
public VkMultiDrawInfoEXT(java.nio.ByteBuffer container)
Creates aVkMultiDrawInfoEXTinstance 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
-
firstVertex
public int firstVertex()
the first vertex to draw.
-
vertexCount
public int vertexCount()
the number of vertices to draw.
-
firstVertex
public VkMultiDrawInfoEXT firstVertex(int value)
Sets the specified value to thefirstVertex()field.
-
vertexCount
public VkMultiDrawInfoEXT vertexCount(int value)
Sets the specified value to thevertexCount()field.
-
set
public VkMultiDrawInfoEXT set(int firstVertex, int vertexCount)
Initializes this struct with the specified values.
-
set
public VkMultiDrawInfoEXT set(VkMultiDrawInfoEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkMultiDrawInfoEXT malloc()
Returns a newVkMultiDrawInfoEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkMultiDrawInfoEXT calloc()
Returns a newVkMultiDrawInfoEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkMultiDrawInfoEXT create()
Returns a newVkMultiDrawInfoEXTinstance allocated withBufferUtils.
-
create
public static VkMultiDrawInfoEXT create(long address)
Returns a newVkMultiDrawInfoEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkMultiDrawInfoEXT createSafe(long address)
-
malloc
public static VkMultiDrawInfoEXT.Buffer malloc(int capacity)
Returns a newVkMultiDrawInfoEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkMultiDrawInfoEXT.Buffer calloc(int capacity)
Returns a newVkMultiDrawInfoEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkMultiDrawInfoEXT.Buffer create(int capacity)
Returns a newVkMultiDrawInfoEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkMultiDrawInfoEXT.Buffer create(long address, int capacity)
Create aVkMultiDrawInfoEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkMultiDrawInfoEXT.Buffer createSafe(long address, int capacity)
-
malloc
public static VkMultiDrawInfoEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkMultiDrawInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkMultiDrawInfoEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkMultiDrawInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkMultiDrawInfoEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkMultiDrawInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkMultiDrawInfoEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkMultiDrawInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nfirstVertex
public static int nfirstVertex(long struct)
Unsafe version offirstVertex().
-
nvertexCount
public static int nvertexCount(long struct)
Unsafe version ofvertexCount().
-
nfirstVertex
public static void nfirstVertex(long struct, int value)Unsafe version offirstVertex.
-
nvertexCount
public static void nvertexCount(long struct, int value)Unsafe version ofvertexCount.
-
-