Record Class WGPUBlendComponent

java.lang.Object
java.lang.Record
club.doki7.webgpu.datatype.WGPUBlendComponent
All Implemented Interfaces:
IPointer, IWGPUBlendComponent

@ValueBasedCandidate @UnsafeConstructor public record WGPUBlendComponent(@NotNull MemorySegment segment) extends Record implements IWGPUBlendComponent

Represents a pointer to a WGPUBlendComponent structure in native memory.

Structure

typedef struct WGPUBlendComponent {
    WGPUBlendOperation operation;
    WGPUBlendFactor srcFactor;
    WGPUBlendFactor dstFactor;
} WGPUBlendComponent;

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

      public static final MemoryLayout.PathElement PATH$operation
    • PATH$srcFactor

      public static final MemoryLayout.PathElement PATH$srcFactor
    • PATH$dstFactor

      public static final MemoryLayout.PathElement PATH$dstFactor
    • LAYOUT$operation

      public static final ValueLayout.OfInt LAYOUT$operation
    • LAYOUT$srcFactor

      public static final ValueLayout.OfInt LAYOUT$srcFactor
    • LAYOUT$dstFactor

      public static final ValueLayout.OfInt LAYOUT$dstFactor
    • SIZE$operation

      public static final long SIZE$operation
    • SIZE$srcFactor

      public static final long SIZE$srcFactor
    • SIZE$dstFactor

      public static final long SIZE$dstFactor
    • OFFSET$operation

      public static final long OFFSET$operation
    • OFFSET$srcFactor

      public static final long OFFSET$srcFactor
    • OFFSET$dstFactor

      public static final long OFFSET$dstFactor
  • Constructor Details

    • WGPUBlendComponent

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