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.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The 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 aVkMultiDrawIndexedInfoEXT
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkMultiDrawIndexedInfoEXT
calloc()
Returns a newVkMultiDrawIndexedInfoEXT
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newVkMultiDrawIndexedInfoEXT.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newVkMultiDrawIndexedInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkMultiDrawIndexedInfoEXT
calloc
(MemoryStack stack) Returns a newVkMultiDrawIndexedInfoEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkMultiDrawIndexedInfoEXT
create()
Returns a newVkMultiDrawIndexedInfoEXT
instance allocated withBufferUtils
.create
(int capacity) Returns a newVkMultiDrawIndexedInfoEXT.Buffer
instance allocated withBufferUtils
.static VkMultiDrawIndexedInfoEXT
create
(long address) Returns a newVkMultiDrawIndexedInfoEXT
instance for the specified memory address.create
(long address, int capacity) Create aVkMultiDrawIndexedInfoEXT.Buffer
instance at the specified memory.static @Nullable VkMultiDrawIndexedInfoEXT
createSafe
(long address) static @Nullable VkMultiDrawIndexedInfoEXT.Buffer
createSafe
(long address, int capacity) int
firstIndex
(int value) Sets the specified value to thefirstIndex
field.int
indexCount
(int value) Sets the specified value to theindexCount
field.static VkMultiDrawIndexedInfoEXT
malloc()
Returns a newVkMultiDrawIndexedInfoEXT
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newVkMultiDrawIndexedInfoEXT.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newVkMultiDrawIndexedInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
.static VkMultiDrawIndexedInfoEXT
malloc
(MemoryStack stack) Returns a newVkMultiDrawIndexedInfoEXT
instance allocated on the specifiedMemoryStack
.static int
nfirstIndex
(long struct) Unsafe version offirstIndex()
.static void
nfirstIndex
(long struct, int value) Unsafe version offirstIndex
.static int
nindexCount
(long struct) Unsafe version ofindexCount()
.static void
nindexCount
(long struct, int value) Unsafe version ofindexCount
.static int
nvertexOffset
(long struct) Unsafe version ofvertexOffset()
.static void
nvertexOffset
(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.int
sizeof()
Returnssizeof(struct)
.int
vertexOffset
(int value) Sets the specified value to thevertexOffset
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 aVkMultiDrawIndexedInfoEXT
instance at the current position of the specifiedByteBuffer
container. 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:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VkMultiDrawIndexedInfoEXT>
-
firstIndex
public int firstIndex()- Returns:
- the value of the
firstIndex
field.
-
indexCount
public int indexCount()- Returns:
- the value of the
indexCount
field.
-
vertexOffset
public int vertexOffset()- Returns:
- the value of the
vertexOffset
field.
-
firstIndex
Sets the specified value to thefirstIndex
field. -
indexCount
Sets the specified value to theindexCount
field. -
vertexOffset
Sets the specified value to thevertexOffset
field. -
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 newVkMultiDrawIndexedInfoEXT
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkMultiDrawIndexedInfoEXT
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkMultiDrawIndexedInfoEXT
instance allocated withBufferUtils
. -
create
Returns a newVkMultiDrawIndexedInfoEXT
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkMultiDrawIndexedInfoEXT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkMultiDrawIndexedInfoEXT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkMultiDrawIndexedInfoEXT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkMultiDrawIndexedInfoEXT.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newVkMultiDrawIndexedInfoEXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkMultiDrawIndexedInfoEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkMultiDrawIndexedInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkMultiDrawIndexedInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-