Package org.lwjgl.vulkan
Class VkMultiDrawIndexedInfoEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkMultiDrawIndexedInfoEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkMultiDrawIndexedInfoEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying a multi-draw command.Description
The
firstIndex,indexCount, andvertexOffsetmembers ofVkMultiDrawIndexedInfoEXThave the same meaning as thefirstIndex,indexCount, andvertexOffsetparameters, respectively, ofCmdDrawIndexed.See Also
Layout
struct VkMultiDrawIndexedInfoEXT { uint32_tfirstIndex(); uint32_tindexCount(); int32_tvertexOffset(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkMultiDrawIndexedInfoEXT.BufferAn array ofVkMultiDrawIndexedInfoEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intFIRSTINDEX
INDEXCOUNTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intVERTEXOFFSETThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkMultiDrawIndexedInfoEXT(java.nio.ByteBuffer container)Creates aVkMultiDrawIndexedInfoEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkMultiDrawIndexedInfoEXTcalloc()Returns a newVkMultiDrawIndexedInfoEXTinstance allocated withmemCalloc.static VkMultiDrawIndexedInfoEXT.Buffercalloc(int capacity)Returns a newVkMultiDrawIndexedInfoEXT.Bufferinstance allocated withmemCalloc.static VkMultiDrawIndexedInfoEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkMultiDrawIndexedInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkMultiDrawIndexedInfoEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkMultiDrawIndexedInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkMultiDrawIndexedInfoEXTcreate()Returns a newVkMultiDrawIndexedInfoEXTinstance allocated withBufferUtils.static VkMultiDrawIndexedInfoEXT.Buffercreate(int capacity)Returns a newVkMultiDrawIndexedInfoEXT.Bufferinstance allocated withBufferUtils.static VkMultiDrawIndexedInfoEXTcreate(long address)Returns a newVkMultiDrawIndexedInfoEXTinstance for the specified memory address.static VkMultiDrawIndexedInfoEXT.Buffercreate(long address, int capacity)Create aVkMultiDrawIndexedInfoEXT.Bufferinstance at the specified memory.static VkMultiDrawIndexedInfoEXTcreateSafe(long address)static VkMultiDrawIndexedInfoEXT.BuffercreateSafe(long address, int capacity)intfirstIndex()the first index to draw.VkMultiDrawIndexedInfoEXTfirstIndex(int value)Sets the specified value to thefirstIndex()field.intindexCount()the number of vertices to draw.VkMultiDrawIndexedInfoEXTindexCount(int value)Sets the specified value to theindexCount()field.static VkMultiDrawIndexedInfoEXTmalloc()Returns a newVkMultiDrawIndexedInfoEXTinstance allocated withmemAlloc.static VkMultiDrawIndexedInfoEXT.Buffermalloc(int capacity)Returns a newVkMultiDrawIndexedInfoEXT.Bufferinstance allocated withmemAlloc.static VkMultiDrawIndexedInfoEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkMultiDrawIndexedInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkMultiDrawIndexedInfoEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkMultiDrawIndexedInfoEXTinstance allocated on the specifiedMemoryStack.static intnfirstIndex(long struct)Unsafe version offirstIndex().static voidnfirstIndex(long struct, int value)Unsafe version offirstIndex.static intnindexCount(long struct)Unsafe version ofindexCount().static voidnindexCount(long struct, int value)Unsafe version ofindexCount.static intnvertexOffset(long struct)Unsafe version ofvertexOffset().static voidnvertexOffset(long struct, int value)Unsafe version ofvertexOffset.VkMultiDrawIndexedInfoEXTset(int firstIndex, int indexCount, int vertexOffset)Initializes this struct with the specified values.VkMultiDrawIndexedInfoEXTset(VkMultiDrawIndexedInfoEXT src)Copies the specified struct data to this struct.intsizeof()intvertexOffset()the value added to the vertex index before indexing into the vertex buffer for indexed multidraws.VkMultiDrawIndexedInfoEXTvertexOffset(int value)Sets the specified value to thevertexOffset()field.
-
-
-
Constructor Detail
-
VkMultiDrawIndexedInfoEXT
public VkMultiDrawIndexedInfoEXT(java.nio.ByteBuffer container)
Creates aVkMultiDrawIndexedInfoEXTinstance 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
-
firstIndex
public int firstIndex()
the first index to draw.
-
indexCount
public int indexCount()
the number of vertices to draw.
-
vertexOffset
public int vertexOffset()
the value added to the vertex index before indexing into the vertex buffer for indexed multidraws.
-
firstIndex
public VkMultiDrawIndexedInfoEXT firstIndex(int value)
Sets the specified value to thefirstIndex()field.
-
indexCount
public VkMultiDrawIndexedInfoEXT indexCount(int value)
Sets the specified value to theindexCount()field.
-
vertexOffset
public VkMultiDrawIndexedInfoEXT vertexOffset(int value)
Sets the specified value to thevertexOffset()field.
-
set
public VkMultiDrawIndexedInfoEXT set(int firstIndex, int indexCount, int vertexOffset)
Initializes this struct with the specified values.
-
set
public VkMultiDrawIndexedInfoEXT set(VkMultiDrawIndexedInfoEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkMultiDrawIndexedInfoEXT malloc()
Returns a newVkMultiDrawIndexedInfoEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkMultiDrawIndexedInfoEXT calloc()
Returns a newVkMultiDrawIndexedInfoEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkMultiDrawIndexedInfoEXT create()
Returns a newVkMultiDrawIndexedInfoEXTinstance allocated withBufferUtils.
-
create
public static VkMultiDrawIndexedInfoEXT create(long address)
Returns a newVkMultiDrawIndexedInfoEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkMultiDrawIndexedInfoEXT createSafe(long address)
-
malloc
public static VkMultiDrawIndexedInfoEXT.Buffer malloc(int capacity)
Returns a newVkMultiDrawIndexedInfoEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkMultiDrawIndexedInfoEXT.Buffer calloc(int capacity)
Returns a newVkMultiDrawIndexedInfoEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkMultiDrawIndexedInfoEXT.Buffer create(int capacity)
Returns a newVkMultiDrawIndexedInfoEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkMultiDrawIndexedInfoEXT.Buffer create(long address, int capacity)
Create aVkMultiDrawIndexedInfoEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkMultiDrawIndexedInfoEXT.Buffer createSafe(long address, int capacity)
-
malloc
public static VkMultiDrawIndexedInfoEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkMultiDrawIndexedInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkMultiDrawIndexedInfoEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkMultiDrawIndexedInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkMultiDrawIndexedInfoEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkMultiDrawIndexedInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkMultiDrawIndexedInfoEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkMultiDrawIndexedInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nfirstIndex
public static int nfirstIndex(long struct)
Unsafe version offirstIndex().
-
nindexCount
public static int nindexCount(long struct)
Unsafe version ofindexCount().
-
nvertexOffset
public static int nvertexOffset(long struct)
Unsafe version ofvertexOffset().
-
nfirstIndex
public static void nfirstIndex(long struct, int value)Unsafe version offirstIndex.
-
nindexCount
public static void nindexCount(long struct, int value)Unsafe version ofindexCount.
-
nvertexOffset
public static void nvertexOffset(long struct, int value)Unsafe version ofvertexOffset.
-
-