Record Class SDL_GPUIndexedIndirectDrawCommand
- All Implemented Interfaces:
IPointer,ISDL_GPUIndexedIndirectDrawCommand
A structure specifying the parameters of an indexed indirect draw command.
Note that the first_vertex and first_instance parameters are NOT
compatible with built-in vertex/instance ID variables in shaders (for
example, SV_VertexID); GPU APIs and shader languages do not define these
built-in variables consistently, so if your shader depends on them, the
only way to keep behavior consistent and portable is to always pass 0 for
the correlating parameter in the draw calls.
Since: This struct is available since SDL 3.2.0.
See also:
SDL_DrawGPUIndexedPrimitivesIndirect
Structure
typedef struct SDL_GPUIndexedIndirectDrawCommand {
Uint32 num_indices;
Uint32 num_instances;
Uint32 first_index;
Sint32 vertex_offset;
Uint32 first_instance;
} SDL_GPUIndexedIndirectDrawCommand;
Contracts
The property segment() should always be not-null
(segment != NULL && !segment.equals(MemorySegment.NULL)), and properly aligned to
LAYOUT.byteAlignment() bytes. To represent null pointer, you may use a Java
null instead. See the documentation of IPointer.segment() for more details.
The constructor of this class is marked as UnsafeConstructor, because it does not
perform any runtime check. The constructor can be useful for automatic code generators.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents a pointer to / an array of null structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final longstatic final longstatic final longstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionSDL_GPUIndexedIndirectDrawCommand(@NotNull MemorySegment segment) Creates an instance of aSDL_GPUIndexedIndirectDrawCommandrecord class. -
Method Summary
Modifier and TypeMethodDescriptionclone(Arena arena, SDL_GPUIndexedIndirectDrawCommand src) final booleanIndicates whether some other object is "equal to" this one.intfirst_index(int value) intfirst_instance(int value) final inthashCode()Returns a hash code value for this object.intnum_indices(int value) intnum_instances(int value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.final StringtoString()Returns a string representation of this record class.intvertex_offset(int value)
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$num_indices
-
PATH$num_instances
-
PATH$first_index
-
PATH$vertex_offset
-
PATH$first_instance
-
LAYOUT$num_indices
-
LAYOUT$num_instances
-
LAYOUT$first_index
-
LAYOUT$vertex_offset
-
LAYOUT$first_instance
-
SIZE$num_indices
public static final long SIZE$num_indices -
SIZE$num_instances
public static final long SIZE$num_instances -
SIZE$first_index
public static final long SIZE$first_index -
SIZE$vertex_offset
public static final long SIZE$vertex_offset -
SIZE$first_instance
public static final long SIZE$first_instance -
OFFSET$num_indices
public static final long OFFSET$num_indices -
OFFSET$num_instances
public static final long OFFSET$num_instances -
OFFSET$first_index
public static final long OFFSET$first_index -
OFFSET$vertex_offset
public static final long OFFSET$vertex_offset -
OFFSET$first_instance
public static final long OFFSET$first_instance
-
-
Constructor Details
-
SDL_GPUIndexedIndirectDrawCommand
Creates an instance of aSDL_GPUIndexedIndirectDrawCommandrecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
public static SDL_GPUIndexedIndirectDrawCommand clone(Arena arena, SDL_GPUIndexedIndirectDrawCommand src) -
num_indices
-
num_indices
-
num_instances
-
num_instances
-
first_index
-
first_index
-
vertex_offset
-
vertex_offset
-
first_instance
-
first_instance
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
segment
Returns the value of thesegmentrecord component.
-