Package org.lwjgl.sdl
Class SDL_GPUIndexedIndirectDrawCommand
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<SDL_GPUIndexedIndirectDrawCommand>
org.lwjgl.sdl.SDL_GPUIndexedIndirectDrawCommand
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class SDL_GPUIndexedIndirectDrawCommand
extends Struct<SDL_GPUIndexedIndirectDrawCommand>
implements NativeResource
struct SDL_GPUIndexedIndirectDrawCommand {
Uint32 num_indices;
Uint32 num_instances;
Uint32 first_index;
Sint32 vertex_offset;
Uint32 first_instance;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
An array ofSDL_GPUIndexedIndirectDrawCommand
structs.Nested 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 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
ConstructorsConstructorDescriptionSDL_GPUIndexedIndirectDrawCommand
(ByteBuffer container) Creates aSDL_GPUIndexedIndirectDrawCommand
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()
Returns a newSDL_GPUIndexedIndirectDrawCommand
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newSDL_GPUIndexedIndirectDrawCommand.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newSDL_GPUIndexedIndirectDrawCommand.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.calloc
(MemoryStack stack) Returns a newSDL_GPUIndexedIndirectDrawCommand
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.create()
Returns a newSDL_GPUIndexedIndirectDrawCommand
instance allocated withBufferUtils
.create
(int capacity) Returns a newSDL_GPUIndexedIndirectDrawCommand.Buffer
instance allocated withBufferUtils
.create
(long address) Returns a newSDL_GPUIndexedIndirectDrawCommand
instance for the specified memory address.create
(long address, int capacity) Create aSDL_GPUIndexedIndirectDrawCommand.Buffer
instance at the specified memory.static @Nullable SDL_GPUIndexedIndirectDrawCommand
createSafe
(long address) static @Nullable SDL_GPUIndexedIndirectDrawCommand.Buffer
createSafe
(long address, int capacity) int
first_index
(int value) Sets the specified value to thefirst_index
field.int
first_instance
(int value) Sets the specified value to thefirst_instance
field.malloc()
Returns a newSDL_GPUIndexedIndirectDrawCommand
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newSDL_GPUIndexedIndirectDrawCommand.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newSDL_GPUIndexedIndirectDrawCommand.Buffer
instance allocated on the specifiedMemoryStack
.malloc
(MemoryStack stack) Returns a newSDL_GPUIndexedIndirectDrawCommand
instance allocated on the specifiedMemoryStack
.static int
nfirst_index
(long struct) Unsafe version offirst_index()
.static void
nfirst_index
(long struct, int value) Unsafe version offirst_index
.static int
nfirst_instance
(long struct) Unsafe version offirst_instance()
.static void
nfirst_instance
(long struct, int value) Unsafe version offirst_instance
.static int
nnum_indices
(long struct) Unsafe version ofnum_indices()
.static void
nnum_indices
(long struct, int value) Unsafe version ofnum_indices
.static int
nnum_instances
(long struct) Unsafe version ofnum_instances()
.static void
nnum_instances
(long struct, int value) Unsafe version ofnum_instances
.int
num_indices
(int value) Sets the specified value to thenum_indices
field.int
num_instances
(int value) Sets the specified value to thenum_instances
field.static int
nvertex_offset
(long struct) Unsafe version ofvertex_offset()
.static void
nvertex_offset
(long struct, int value) Unsafe version ofvertex_offset
.set
(int num_indices, int num_instances, int first_index, int vertex_offset, int first_instance) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
vertex_offset
(int value) Sets the specified value to thevertex_offset
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. -
NUM_INDICES
public static final int NUM_INDICESThe struct member offsets. -
NUM_INSTANCES
public static final int NUM_INSTANCESThe struct member offsets. -
FIRST_INDEX
public static final int FIRST_INDEXThe struct member offsets. -
VERTEX_OFFSET
public static final int VERTEX_OFFSETThe struct member offsets. -
FIRST_INSTANCE
public static final int FIRST_INSTANCEThe struct member offsets.
-
-
Constructor Details
-
SDL_GPUIndexedIndirectDrawCommand
Creates aSDL_GPUIndexedIndirectDrawCommand
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<SDL_GPUIndexedIndirectDrawCommand>
-
num_indices
public int num_indices()- Returns:
- the value of the
num_indices
field.
-
num_instances
public int num_instances()- Returns:
- the value of the
num_instances
field.
-
first_index
public int first_index()- Returns:
- the value of the
first_index
field.
-
vertex_offset
public int vertex_offset()- Returns:
- the value of the
vertex_offset
field.
-
first_instance
public int first_instance()- Returns:
- the value of the
first_instance
field.
-
num_indices
Sets the specified value to thenum_indices
field. -
num_instances
Sets the specified value to thenum_instances
field. -
first_index
Sets the specified value to thefirst_index
field. -
vertex_offset
Sets the specified value to thevertex_offset
field. -
first_instance
Sets the specified value to thefirst_instance
field. -
set
public SDL_GPUIndexedIndirectDrawCommand set(int num_indices, int num_instances, int first_index, int vertex_offset, int first_instance) 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 newSDL_GPUIndexedIndirectDrawCommand
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newSDL_GPUIndexedIndirectDrawCommand
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newSDL_GPUIndexedIndirectDrawCommand
instance allocated withBufferUtils
. -
create
Returns a newSDL_GPUIndexedIndirectDrawCommand
instance for the specified memory address. -
createSafe
-
malloc
Returns a newSDL_GPUIndexedIndirectDrawCommand.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newSDL_GPUIndexedIndirectDrawCommand.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newSDL_GPUIndexedIndirectDrawCommand.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aSDL_GPUIndexedIndirectDrawCommand.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
public static @Nullable SDL_GPUIndexedIndirectDrawCommand.Buffer createSafe(long address, int capacity) -
malloc
Returns a newSDL_GPUIndexedIndirectDrawCommand
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newSDL_GPUIndexedIndirectDrawCommand
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newSDL_GPUIndexedIndirectDrawCommand.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newSDL_GPUIndexedIndirectDrawCommand.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nnum_indices
public static int nnum_indices(long struct) Unsafe version ofnum_indices()
. -
nnum_instances
public static int nnum_instances(long struct) Unsafe version ofnum_instances()
. -
nfirst_index
public static int nfirst_index(long struct) Unsafe version offirst_index()
. -
nvertex_offset
public static int nvertex_offset(long struct) Unsafe version ofvertex_offset()
. -
nfirst_instance
public static int nfirst_instance(long struct) Unsafe version offirst_instance()
. -
nnum_indices
public static void nnum_indices(long struct, int value) Unsafe version ofnum_indices
. -
nnum_instances
public static void nnum_instances(long struct, int value) Unsafe version ofnum_instances
. -
nfirst_index
public static void nfirst_index(long struct, int value) Unsafe version offirst_index
. -
nvertex_offset
public static void nvertex_offset(long struct, int value) Unsafe version ofvertex_offset
. -
nfirst_instance
public static void nfirst_instance(long struct, int value) Unsafe version offirst_instance
.
-