Record Class SDL_GPUGraphicsPipelineCreateInfo
java.lang.Object
java.lang.Record
club.doki7.sdl3.datatype.SDL_GPUGraphicsPipelineCreateInfo
- All Implemented Interfaces:
IPointer,ISDL_GPUGraphicsPipelineCreateInfo
@ValueBasedCandidate
@UnsafeConstructor
public record SDL_GPUGraphicsPipelineCreateInfo(@NotNull MemorySegment segment)
extends Record
implements ISDL_GPUGraphicsPipelineCreateInfo
A structure specifying the parameters of a graphics pipeline state.
Since: This struct is available since SDL 3.2.0.
See also:
SDL_CreateGPUGraphicsPipelineSDL_GPUShaderSDL_GPUVertexInputStateSDL_GPUPrimitiveTypeSDL_GPURasterizerStateSDL_GPUMultisampleStateSDL_GPUDepthStencilStateSDL_GPUGraphicsPipelineTargetInfo
Structure
typedef struct SDL_GPUGraphicsPipelineCreateInfo {
SDL_GPUShader* vertex_shader;
SDL_GPUShader* fragment_shader;
SDL_GPUVertexInputState vertex_input_state;
SDL_GPUPrimitiveType primitive_type;
SDL_GPURasterizerState rasterizer_state;
SDL_GPUMultisampleState multisample_state;
SDL_GPUDepthStencilState depth_stencil_state;
SDL_GPUGraphicsPipelineTargetInfo target_info;
SDL_PropertiesID props;
} SDL_GPUGraphicsPipelineCreateInfo;
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 StructLayoutstatic final AddressLayoutstatic final StructLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final StructLayoutstatic final StructLayoutstatic final StructLayoutstatic final AddressLayoutstatic final longstatic final longstatic final longstatic final longstatic 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 MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionSDL_GPUGraphicsPipelineCreateInfo(@NotNull MemorySegment segment) Creates an instance of aSDL_GPUGraphicsPipelineCreateInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionclone(Arena arena, SDL_GPUGraphicsPipelineCreateInfo src) @NotNull SDL_GPUDepthStencilStatedepth_stencil_state(@NotNull SDL_GPUDepthStencilState value) depth_stencil_state(Consumer<@NotNull SDL_GPUDepthStencilState> consumer) final booleanIndicates whether some other object is "equal to" this one.@Nullable SDL_GPUShaderfragment_shader(@Nullable SDL_GPUShader value) final inthashCode()Returns a hash code value for this object.@NotNull SDL_GPUMultisampleStatemultisample_state(@NotNull SDL_GPUMultisampleState value) multisample_state(Consumer<@NotNull SDL_GPUMultisampleState> consumer) intprimitive_type(int value) intprops()props(int value) @NotNull SDL_GPURasterizerStaterasterizer_state(@NotNull SDL_GPURasterizerState value) rasterizer_state(Consumer<@NotNull SDL_GPURasterizerState> consumer) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.@NotNull SDL_GPUGraphicsPipelineTargetInfotarget_info(@NotNull SDL_GPUGraphicsPipelineTargetInfo value) target_info(Consumer<@NotNull SDL_GPUGraphicsPipelineTargetInfo> consumer) final StringtoString()Returns a string representation of this record class.@NotNull SDL_GPUVertexInputStatevertex_input_state(@NotNull SDL_GPUVertexInputState value) vertex_input_state(Consumer<@NotNull SDL_GPUVertexInputState> consumer) @Nullable SDL_GPUShadervertex_shader(@Nullable SDL_GPUShader value)
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$vertex_shader
-
PATH$fragment_shader
-
PATH$vertex_input_state
-
PATH$primitive_type
-
PATH$rasterizer_state
-
PATH$multisample_state
-
PATH$depth_stencil_state
-
PATH$target_info
-
PATH$props
-
LAYOUT$vertex_shader
-
LAYOUT$fragment_shader
-
LAYOUT$vertex_input_state
-
LAYOUT$primitive_type
-
LAYOUT$rasterizer_state
-
LAYOUT$multisample_state
-
LAYOUT$depth_stencil_state
-
LAYOUT$target_info
-
LAYOUT$props
-
SIZE$vertex_shader
public static final long SIZE$vertex_shader -
SIZE$fragment_shader
public static final long SIZE$fragment_shader -
SIZE$vertex_input_state
public static final long SIZE$vertex_input_state -
SIZE$primitive_type
public static final long SIZE$primitive_type -
SIZE$rasterizer_state
public static final long SIZE$rasterizer_state -
SIZE$multisample_state
public static final long SIZE$multisample_state -
SIZE$depth_stencil_state
public static final long SIZE$depth_stencil_state -
SIZE$target_info
public static final long SIZE$target_info -
SIZE$props
public static final long SIZE$props -
OFFSET$vertex_shader
public static final long OFFSET$vertex_shader -
OFFSET$fragment_shader
public static final long OFFSET$fragment_shader -
OFFSET$vertex_input_state
public static final long OFFSET$vertex_input_state -
OFFSET$primitive_type
public static final long OFFSET$primitive_type -
OFFSET$rasterizer_state
public static final long OFFSET$rasterizer_state -
OFFSET$multisample_state
public static final long OFFSET$multisample_state -
OFFSET$depth_stencil_state
public static final long OFFSET$depth_stencil_state -
OFFSET$target_info
public static final long OFFSET$target_info -
OFFSET$props
public static final long OFFSET$props
-
-
Constructor Details
-
SDL_GPUGraphicsPipelineCreateInfo
Creates an instance of aSDL_GPUGraphicsPipelineCreateInforecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
public static SDL_GPUGraphicsPipelineCreateInfo clone(Arena arena, SDL_GPUGraphicsPipelineCreateInfo src) -
vertex_shader
-
vertex_shader
-
fragment_shader
-
fragment_shader
-
vertex_input_state
-
vertex_input_state
public SDL_GPUGraphicsPipelineCreateInfo vertex_input_state(@NotNull @NotNull SDL_GPUVertexInputState value) -
vertex_input_state
public SDL_GPUGraphicsPipelineCreateInfo vertex_input_state(Consumer<@NotNull SDL_GPUVertexInputState> consumer) -
primitive_type
-
primitive_type
public SDL_GPUGraphicsPipelineCreateInfo primitive_type(@EnumType(SDL_GPUPrimitiveType.class) int value) -
rasterizer_state
-
rasterizer_state
public SDL_GPUGraphicsPipelineCreateInfo rasterizer_state(@NotNull @NotNull SDL_GPURasterizerState value) -
rasterizer_state
public SDL_GPUGraphicsPipelineCreateInfo rasterizer_state(Consumer<@NotNull SDL_GPURasterizerState> consumer) -
multisample_state
-
multisample_state
public SDL_GPUGraphicsPipelineCreateInfo multisample_state(@NotNull @NotNull SDL_GPUMultisampleState value) -
multisample_state
public SDL_GPUGraphicsPipelineCreateInfo multisample_state(Consumer<@NotNull SDL_GPUMultisampleState> consumer) -
depth_stencil_state
-
depth_stencil_state
public SDL_GPUGraphicsPipelineCreateInfo depth_stencil_state(@NotNull @NotNull SDL_GPUDepthStencilState value) -
depth_stencil_state
public SDL_GPUGraphicsPipelineCreateInfo depth_stencil_state(Consumer<@NotNull SDL_GPUDepthStencilState> consumer) -
target_info
-
target_info
public SDL_GPUGraphicsPipelineCreateInfo target_info(@NotNull @NotNull SDL_GPUGraphicsPipelineTargetInfo value) -
target_info
public SDL_GPUGraphicsPipelineCreateInfo target_info(Consumer<@NotNull SDL_GPUGraphicsPipelineTargetInfo> consumer) -
props
-
props
-
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.
-