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.

  • Field Details

    • LAYOUT

      public static final StructLayout LAYOUT
    • BYTES

      public static final long BYTES
    • PATH$vertex_buffer_descriptions

      public static final MemoryLayout.PathElement PATH$vertex_buffer_descriptions
    • PATH$num_vertex_buffers

      public static final MemoryLayout.PathElement PATH$num_vertex_buffers
    • PATH$vertex_attributes

      public static final MemoryLayout.PathElement PATH$vertex_attributes
    • PATH$num_vertex_attributes

      public static final MemoryLayout.PathElement PATH$num_vertex_attributes
    • LAYOUT$vertex_buffer_descriptions

      public static final AddressLayout LAYOUT$vertex_buffer_descriptions
    • LAYOUT$num_vertex_buffers

      public static final ValueLayout.OfInt LAYOUT$num_vertex_buffers
    • LAYOUT$vertex_attributes

      public static final AddressLayout LAYOUT$vertex_attributes
    • LAYOUT$num_vertex_attributes

      public static final ValueLayout.OfInt 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

      public SDL_GPUVertexInputState(@NotNull @NotNull MemorySegment segment)
      Creates an instance of a SDL_GPUVertexInputState record class.
      Parameters:
      segment - the value for the segment record component
  • Method Details