Record Class SDL_GPUVertexInputState
java.lang.Object
java.lang.Record
club.doki7.sdl3.datatype.SDL_GPUVertexInputState
- All Implemented Interfaces:
IPointer
,ISDL_GPUVertexInputState
@ValueBasedCandidate
@UnsafeConstructor
public record SDL_GPUVertexInputState(@NotNull MemorySegment segment)
extends Record
implements ISDL_GPUVertexInputState
A structure specifying the parameters of a graphics pipeline vertex input state.
Since: This struct is available since SDL 3.2.0.
See also:
SDL_GPUGraphicsPipelineCreateInfo
SDL_GPUVertexBufferDescription
SDL_GPUVertexAttribute
Structure
typedef struct SDL_GPUVertexInputState {
SDL_GPUVertexBufferDescription
const* vertex_buffer_descriptions
;
Uint32 num_vertex_buffers
;
SDL_GPUVertexAttribute
const* vertex_attributes
;
Uint32 num_vertex_attributes
;
} SDL_GPUVertexInputState;
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 record
Represents a pointer to / an array of null structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final AddressLayout
static final AddressLayout
static final long
static final long
static final long
static final long
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final long
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionSDL_GPUVertexInputState
(@NotNull MemorySegment segment) Creates an instance of aSDL_GPUVertexInputState
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SDL_GPUVertexInputState
static SDL_GPUVertexInputState.Ptr
static SDL_GPUVertexInputState
clone
(Arena arena, SDL_GPUVertexInputState src) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
num_vertex_attributes
(int value) int
num_vertex_buffers
(int value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.final String
toString()
Returns a string representation of this record class.@Nullable SDL_GPUVertexAttribute
vertex_attributes
(int assumedCount) vertex_attributes
(@Nullable ISDL_GPUVertexAttribute value) void
@Nullable SDL_GPUVertexBufferDescription
vertex_buffer_descriptions
(int assumedCount) vertex_buffer_descriptions
(@Nullable ISDL_GPUVertexBufferDescription value) void
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$vertex_buffer_descriptions
-
PATH$num_vertex_buffers
-
PATH$vertex_attributes
-
PATH$num_vertex_attributes
-
LAYOUT$vertex_buffer_descriptions
-
LAYOUT$num_vertex_buffers
-
LAYOUT$vertex_attributes
-
LAYOUT$num_vertex_attributes
-
SIZE$vertex_buffer_descriptions
public static final long SIZE$vertex_buffer_descriptions -
SIZE$num_vertex_buffers
public static final long SIZE$num_vertex_buffers -
SIZE$vertex_attributes
public static final long SIZE$vertex_attributes -
SIZE$num_vertex_attributes
public static final long SIZE$num_vertex_attributes -
OFFSET$vertex_buffer_descriptions
public static final long OFFSET$vertex_buffer_descriptions -
OFFSET$num_vertex_buffers
public static final long OFFSET$num_vertex_buffers -
OFFSET$vertex_attributes
public static final long OFFSET$vertex_attributes -
OFFSET$num_vertex_attributes
public static final long OFFSET$num_vertex_attributes
-
-
Constructor Details
-
SDL_GPUVertexInputState
Creates an instance of aSDL_GPUVertexInputState
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
vertex_buffer_descriptions
public SDL_GPUVertexInputState vertex_buffer_descriptions(@Nullable @Nullable ISDL_GPUVertexBufferDescription value) -
vertex_buffer_descriptions
@Unsafe @Nullable public SDL_GPUVertexBufferDescription.Ptr vertex_buffer_descriptions(int assumedCount) -
vertex_buffer_descriptions
-
vertex_buffer_descriptionsRaw
@Pointer(target=SDL_GPUVertexBufferDescription.class) public MemorySegment vertex_buffer_descriptionsRaw() -
vertex_buffer_descriptionsRaw
public void vertex_buffer_descriptionsRaw(@Pointer(target=SDL_GPUVertexBufferDescription.class) MemorySegment value) -
num_vertex_buffers
-
num_vertex_buffers
-
vertex_attributes
-
vertex_attributes
-
vertex_attributes
-
vertex_attributesRaw
-
vertex_attributesRaw
-
num_vertex_attributes
-
num_vertex_attributes
-
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 thesegment
record component.
-