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_GPUGraphicsPipelineCreateInfoSDL_GPUVertexBufferDescriptionSDL_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 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 AddressLayoutstatic final AddressLayoutstatic 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_GPUVertexInputState(@NotNull MemorySegment segment) Creates an instance of aSDL_GPUVertexInputStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SDL_GPUVertexInputStatestatic SDL_GPUVertexInputState.Ptrstatic SDL_GPUVertexInputStateclone(Arena arena, SDL_GPUVertexInputState src) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intnum_vertex_attributes(int value) intnum_vertex_buffers(int value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.final StringtoString()Returns a string representation of this record class.@Nullable SDL_GPUVertexAttributevertex_attributes(int assumedCount) vertex_attributes(@Nullable ISDL_GPUVertexAttribute value) void@Nullable SDL_GPUVertexBufferDescriptionvertex_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_GPUVertexInputStaterecord class.- Parameters:
segment- the value for thesegmentrecord 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 thesegmentrecord component.
-