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 classAn array ofSDL_GPUIndexedIndirectDrawCommandstructs.Nested 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 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
ConstructorsConstructorDescriptionSDL_GPUIndexedIndirectDrawCommand(ByteBuffer container) Creates aSDL_GPUIndexedIndirectDrawCommandinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newSDL_GPUIndexedIndirectDrawCommandinstance allocated withmemCalloc.calloc(int capacity) Returns a newSDL_GPUIndexedIndirectDrawCommand.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newSDL_GPUIndexedIndirectDrawCommand.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newSDL_GPUIndexedIndirectDrawCommandinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newSDL_GPUIndexedIndirectDrawCommandinstance allocated withBufferUtils.create(int capacity) Returns a newSDL_GPUIndexedIndirectDrawCommand.Bufferinstance allocated withBufferUtils.create(long address) Returns a newSDL_GPUIndexedIndirectDrawCommandinstance for the specified memory address.create(long address, int capacity) Create aSDL_GPUIndexedIndirectDrawCommand.Bufferinstance at the specified memory.static @Nullable SDL_GPUIndexedIndirectDrawCommandcreateSafe(long address) static @Nullable SDL_GPUIndexedIndirectDrawCommand.BuffercreateSafe(long address, int capacity) intfirst_index(int value) Sets the specified value to thefirst_indexfield.intfirst_instance(int value) Sets the specified value to thefirst_instancefield.malloc()Returns a newSDL_GPUIndexedIndirectDrawCommandinstance allocated withmemAlloc.malloc(int capacity) Returns a newSDL_GPUIndexedIndirectDrawCommand.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newSDL_GPUIndexedIndirectDrawCommand.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newSDL_GPUIndexedIndirectDrawCommandinstance allocated on the specifiedMemoryStack.static intnfirst_index(long struct) Unsafe version offirst_index().static voidnfirst_index(long struct, int value) Unsafe version offirst_index.static intnfirst_instance(long struct) Unsafe version offirst_instance().static voidnfirst_instance(long struct, int value) Unsafe version offirst_instance.static intnnum_indices(long struct) Unsafe version ofnum_indices().static voidnnum_indices(long struct, int value) Unsafe version ofnum_indices.static intnnum_instances(long struct) Unsafe version ofnum_instances().static voidnnum_instances(long struct, int value) Unsafe version ofnum_instances.intnum_indices(int value) Sets the specified value to thenum_indicesfield.intnum_instances(int value) Sets the specified value to thenum_instancesfield.static intnvertex_offset(long struct) Unsafe version ofvertex_offset().static voidnvertex_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.intsizeof()Returnssizeof(struct).intvertex_offset(int value) Sets the specified value to thevertex_offsetfield.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. -
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_GPUIndexedIndirectDrawCommandinstance 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<SDL_GPUIndexedIndirectDrawCommand>
-
num_indices
public int num_indices()- Returns:
- the value of the
num_indicesfield.
-
num_instances
public int num_instances()- Returns:
- the value of the
num_instancesfield.
-
first_index
public int first_index()- Returns:
- the value of the
first_indexfield.
-
vertex_offset
public int vertex_offset()- Returns:
- the value of the
vertex_offsetfield.
-
first_instance
public int first_instance()- Returns:
- the value of the
first_instancefield.
-
num_indices
Sets the specified value to thenum_indicesfield. -
num_instances
Sets the specified value to thenum_instancesfield. -
first_index
Sets the specified value to thefirst_indexfield. -
vertex_offset
Sets the specified value to thevertex_offsetfield. -
first_instance
Sets the specified value to thefirst_instancefield. -
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_GPUIndexedIndirectDrawCommandinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSDL_GPUIndexedIndirectDrawCommandinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSDL_GPUIndexedIndirectDrawCommandinstance allocated withBufferUtils. -
create
Returns a newSDL_GPUIndexedIndirectDrawCommandinstance for the specified memory address. -
createSafe
-
malloc
Returns a newSDL_GPUIndexedIndirectDrawCommand.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSDL_GPUIndexedIndirectDrawCommand.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSDL_GPUIndexedIndirectDrawCommand.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSDL_GPUIndexedIndirectDrawCommand.Bufferinstance 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_GPUIndexedIndirectDrawCommandinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSDL_GPUIndexedIndirectDrawCommandinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSDL_GPUIndexedIndirectDrawCommand.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSDL_GPUIndexedIndirectDrawCommand.Bufferinstance allocated on the specifiedMemoryStackand 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.
-