Record Class SDL_GPUStencilOpState

java.lang.Object
java.lang.Record
club.doki7.sdl3.datatype.SDL_GPUStencilOpState
All Implemented Interfaces:
IPointer, ISDL_GPUStencilOpState

@ValueBasedCandidate @UnsafeConstructor public record SDL_GPUStencilOpState(@NotNull MemorySegment segment) extends Record implements ISDL_GPUStencilOpState

A structure specifying the stencil operation state of a graphics pipeline.

Since: This struct is available since SDL 3.2.0.

See also:

  • SDL_GPUDepthStencilState

Structure

typedef struct SDL_GPUStencilOpState {
    SDL_GPUStencilOp fail_op;
    SDL_GPUStencilOp pass_op;
    SDL_GPUStencilOp depth_fail_op;
    SDL_GPUCompareOp compare_op;
} SDL_GPUStencilOpState;

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$fail_op

      public static final MemoryLayout.PathElement PATH$fail_op
    • PATH$pass_op

      public static final MemoryLayout.PathElement PATH$pass_op
    • PATH$depth_fail_op

      public static final MemoryLayout.PathElement PATH$depth_fail_op
    • PATH$compare_op

      public static final MemoryLayout.PathElement PATH$compare_op
    • LAYOUT$fail_op

      public static final ValueLayout.OfInt LAYOUT$fail_op
    • LAYOUT$pass_op

      public static final ValueLayout.OfInt LAYOUT$pass_op
    • LAYOUT$depth_fail_op

      public static final ValueLayout.OfInt LAYOUT$depth_fail_op
    • LAYOUT$compare_op

      public static final ValueLayout.OfInt LAYOUT$compare_op
    • SIZE$fail_op

      public static final long SIZE$fail_op
    • SIZE$pass_op

      public static final long SIZE$pass_op
    • SIZE$depth_fail_op

      public static final long SIZE$depth_fail_op
    • SIZE$compare_op

      public static final long SIZE$compare_op
    • OFFSET$fail_op

      public static final long OFFSET$fail_op
    • OFFSET$pass_op

      public static final long OFFSET$pass_op
    • OFFSET$depth_fail_op

      public static final long OFFSET$depth_fail_op
    • OFFSET$compare_op

      public static final long OFFSET$compare_op
  • Constructor Details

    • SDL_GPUStencilOpState

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