Package org.lwjgl.vulkan
Class VkMultiDrawIndexedInfoEXT
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class VkMultiDrawIndexedInfoEXT
extends Struct<VkMultiDrawIndexedInfoEXT>
implements NativeResource
struct VkMultiDrawIndexedInfoEXT {
uint32_t firstIndex;
uint32_t indexCount;
int32_t vertexOffset;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkMultiDrawIndexedInfoEXT(ByteBuffer container) Creates aVkMultiDrawIndexedInfoEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkMultiDrawIndexedInfoEXTcalloc()Returns a newVkMultiDrawIndexedInfoEXTinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkMultiDrawIndexedInfoEXT.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkMultiDrawIndexedInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkMultiDrawIndexedInfoEXTcalloc(MemoryStack stack) Returns a newVkMultiDrawIndexedInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkMultiDrawIndexedInfoEXTcreate()Returns a newVkMultiDrawIndexedInfoEXTinstance allocated withBufferUtils.create(int capacity) Returns a newVkMultiDrawIndexedInfoEXT.Bufferinstance allocated withBufferUtils.static VkMultiDrawIndexedInfoEXTcreate(long address) Returns a newVkMultiDrawIndexedInfoEXTinstance for the specified memory address.create(long address, int capacity) Create aVkMultiDrawIndexedInfoEXT.Bufferinstance at the specified memory.static @Nullable VkMultiDrawIndexedInfoEXTcreateSafe(long address) static @Nullable VkMultiDrawIndexedInfoEXT.BuffercreateSafe(long address, int capacity) intfirstIndex(int value) Sets the specified value to thefirstIndexfield.intindexCount(int value) Sets the specified value to theindexCountfield.static VkMultiDrawIndexedInfoEXTmalloc()Returns a newVkMultiDrawIndexedInfoEXTinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkMultiDrawIndexedInfoEXT.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkMultiDrawIndexedInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkMultiDrawIndexedInfoEXTmalloc(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.set(int firstIndex, int indexCount, int vertexOffset) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intvertexOffset(int value) Sets the specified value to thevertexOffsetfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
FIRSTINDEX
public static final int FIRSTINDEXThe struct member offsets. -
INDEXCOUNT
public static final int INDEXCOUNTThe struct member offsets. -
VERTEXOFFSET
public static final int VERTEXOFFSETThe struct member offsets.
-
-
Constructor Details
-
VkMultiDrawIndexedInfoEXT
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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkMultiDrawIndexedInfoEXT>
-
firstIndex
public int firstIndex()- Returns:
- the value of the
firstIndexfield.
-
indexCount
public int indexCount()- Returns:
- the value of the
indexCountfield.
-
vertexOffset
public int vertexOffset()- Returns:
- the value of the
vertexOffsetfield.
-
firstIndex
Sets the specified value to thefirstIndexfield. -
indexCount
Sets the specified value to theindexCountfield. -
vertexOffset
Sets the specified value to thevertexOffsetfield. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkMultiDrawIndexedInfoEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkMultiDrawIndexedInfoEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkMultiDrawIndexedInfoEXTinstance allocated withBufferUtils. -
create
Returns a newVkMultiDrawIndexedInfoEXTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkMultiDrawIndexedInfoEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkMultiDrawIndexedInfoEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkMultiDrawIndexedInfoEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkMultiDrawIndexedInfoEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkMultiDrawIndexedInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkMultiDrawIndexedInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkMultiDrawIndexedInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkMultiDrawIndexedInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
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.
-