Record Class SDL_GPUVertexBufferDescription
- All Implemented Interfaces:
IPointer,ISDL_GPUVertexBufferDescription
A structure specifying the parameters of vertex buffers used in a graphics pipeline.
When you call SDL_BindGPUVertexBuffers, you specify the binding slots of the vertex buffers. For example if you called SDL_BindGPUVertexBuffers with a first_slot of 2 and num_bindings of 3, the binding slots 2, 3, 4 would be used by the vertex buffers you pass in.
Vertex attributes are linked to buffers via the buffer_slot field of SDL_GPUVertexAttribute. For example, if an attribute has a buffer_slot of 0, then that attribute belongs to the vertex buffer bound at slot 0.
Since: This struct is available since SDL 3.2.0.
See also:
SDL_GPUVertexAttributeSDL_GPUVertexInputRate
Structure
typedef struct SDL_GPUVertexBufferDescription {
Uint32 slot;
Uint32 pitch;
SDL_GPUVertexInputRate input_rate;
Uint32 instance_step_rate;
} SDL_GPUVertexBufferDescription;
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 longstatic final longstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionSDL_GPUVertexBufferDescription(@NotNull MemorySegment segment) Creates an instance of aSDL_GPUVertexBufferDescriptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionclone(Arena arena, SDL_GPUVertexBufferDescription src) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intinput_rate(int value) intinstance_step_rate(int value) intpitch()pitch(int value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.intslot()slot(int value) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$slot
-
PATH$pitch
-
PATH$input_rate
-
PATH$instance_step_rate
-
LAYOUT$slot
-
LAYOUT$pitch
-
LAYOUT$input_rate
-
LAYOUT$instance_step_rate
-
SIZE$slot
public static final long SIZE$slot -
SIZE$pitch
public static final long SIZE$pitch -
SIZE$input_rate
public static final long SIZE$input_rate -
SIZE$instance_step_rate
public static final long SIZE$instance_step_rate -
OFFSET$slot
public static final long OFFSET$slot -
OFFSET$pitch
public static final long OFFSET$pitch -
OFFSET$input_rate
public static final long OFFSET$input_rate -
OFFSET$instance_step_rate
public static final long OFFSET$instance_step_rate
-
-
Constructor Details
-
SDL_GPUVertexBufferDescription
Creates an instance of aSDL_GPUVertexBufferDescriptionrecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
slot
-
slot
-
pitch
-
pitch
-
input_rate
-
input_rate
-
instance_step_rate
-
instance_step_rate
-
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.
-