Record Class SDL_GPUGraphicsPipelineTargetInfo

java.lang.Object
java.lang.Record
club.doki7.sdl3.datatype.SDL_GPUGraphicsPipelineTargetInfo
All Implemented Interfaces:
IPointer, ISDL_GPUGraphicsPipelineTargetInfo

@ValueBasedCandidate @UnsafeConstructor public record SDL_GPUGraphicsPipelineTargetInfo(@NotNull MemorySegment segment) extends Record implements ISDL_GPUGraphicsPipelineTargetInfo

A structure specifying the descriptions of render targets used in a graphics pipeline.

Since: This struct is available since SDL 3.2.0.

See also:

  • SDL_GPUGraphicsPipelineCreateInfo
  • SDL_GPUColorTargetDescription
  • SDL_GPUTextureFormat

Structure

typedef struct SDL_GPUGraphicsPipelineTargetInfo {
    SDL_GPUColorTargetDescription const* color_target_descriptions;
    Uint32 num_color_targets;
    SDL_GPUTextureFormat depth_stencil_format;
    bool has_depth_stencil_target;
    Uint8 padding1;
    Uint8 padding2;
    Uint8 padding3;
} SDL_GPUGraphicsPipelineTargetInfo;

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.