Record Class WGPUDepthStencilState

java.lang.Object
java.lang.Record
club.doki7.webgpu.datatype.WGPUDepthStencilState
All Implemented Interfaces:
IPointer, IWGPUDepthStencilState

@ValueBasedCandidate @UnsafeConstructor public record WGPUDepthStencilState(@NotNull MemorySegment segment) extends Record implements IWGPUDepthStencilState

Represents a pointer to a WGPUDepthStencilState structure in native memory.

Structure

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

      public static final MemoryLayout.PathElement PATH$nextInChain
    • PATH$format

      public static final MemoryLayout.PathElement PATH$format
    • PATH$depthWriteEnabled

      public static final MemoryLayout.PathElement PATH$depthWriteEnabled
    • PATH$depthCompare

      public static final MemoryLayout.PathElement PATH$depthCompare
    • PATH$stencilFront

      public static final MemoryLayout.PathElement PATH$stencilFront
    • PATH$stencilBack

      public static final MemoryLayout.PathElement PATH$stencilBack
    • PATH$stencilReadMask

      public static final MemoryLayout.PathElement PATH$stencilReadMask
    • PATH$stencilWriteMask

      public static final MemoryLayout.PathElement PATH$stencilWriteMask
    • PATH$depthBias

      public static final MemoryLayout.PathElement PATH$depthBias
    • PATH$depthBiasSlopeScale

      public static final MemoryLayout.PathElement PATH$depthBiasSlopeScale
    • PATH$depthBiasClamp

      public static final MemoryLayout.PathElement PATH$depthBiasClamp
    • LAYOUT$nextInChain

      public static final AddressLayout LAYOUT$nextInChain
    • LAYOUT$format

      public static final ValueLayout.OfInt LAYOUT$format
    • LAYOUT$depthWriteEnabled

      public static final ValueLayout.OfInt LAYOUT$depthWriteEnabled
    • LAYOUT$depthCompare

      public static final ValueLayout.OfInt LAYOUT$depthCompare
    • LAYOUT$stencilFront

      public static final StructLayout LAYOUT$stencilFront
    • LAYOUT$stencilBack

      public static final StructLayout LAYOUT$stencilBack
    • LAYOUT$stencilReadMask

      public static final ValueLayout.OfInt LAYOUT$stencilReadMask
    • LAYOUT$stencilWriteMask

      public static final ValueLayout.OfInt LAYOUT$stencilWriteMask
    • LAYOUT$depthBias

      public static final ValueLayout.OfInt LAYOUT$depthBias
    • LAYOUT$depthBiasSlopeScale

      public static final ValueLayout.OfFloat LAYOUT$depthBiasSlopeScale
    • LAYOUT$depthBiasClamp

      public static final ValueLayout.OfFloat LAYOUT$depthBiasClamp
    • SIZE$nextInChain

      public static final long SIZE$nextInChain
    • SIZE$format

      public static final long SIZE$format
    • SIZE$depthWriteEnabled

      public static final long SIZE$depthWriteEnabled
    • SIZE$depthCompare

      public static final long SIZE$depthCompare
    • SIZE$stencilFront

      public static final long SIZE$stencilFront
    • SIZE$stencilBack

      public static final long SIZE$stencilBack
    • SIZE$stencilReadMask

      public static final long SIZE$stencilReadMask
    • SIZE$stencilWriteMask

      public static final long SIZE$stencilWriteMask
    • SIZE$depthBias

      public static final long SIZE$depthBias
    • SIZE$depthBiasSlopeScale

      public static final long SIZE$depthBiasSlopeScale
    • SIZE$depthBiasClamp

      public static final long SIZE$depthBiasClamp
    • OFFSET$nextInChain

      public static final long OFFSET$nextInChain
    • OFFSET$format

      public static final long OFFSET$format
    • OFFSET$depthWriteEnabled

      public static final long OFFSET$depthWriteEnabled
    • OFFSET$depthCompare

      public static final long OFFSET$depthCompare
    • OFFSET$stencilFront

      public static final long OFFSET$stencilFront
    • OFFSET$stencilBack

      public static final long OFFSET$stencilBack
    • OFFSET$stencilReadMask

      public static final long OFFSET$stencilReadMask
    • OFFSET$stencilWriteMask

      public static final long OFFSET$stencilWriteMask
    • OFFSET$depthBias

      public static final long OFFSET$depthBias
    • OFFSET$depthBiasSlopeScale

      public static final long OFFSET$depthBiasSlopeScale
    • OFFSET$depthBiasClamp

      public static final long OFFSET$depthBiasClamp
  • Constructor Details

    • WGPUDepthStencilState

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