Record Class WGPUShaderModuleDescriptorSpirV

java.lang.Object
java.lang.Record
club.doki7.webgpu.datatype.WGPUShaderModuleDescriptorSpirV
All Implemented Interfaces:
IPointer, IWGPUShaderModuleDescriptorSpirV

@ValueBasedCandidate @UnsafeConstructor public record WGPUShaderModuleDescriptorSpirV(@NotNull MemorySegment segment) extends Record implements IWGPUShaderModuleDescriptorSpirV

Represents a pointer to a WGPUShaderModuleDescriptorSpirV structure in native memory.

Structure

typedef struct WGPUShaderModuleDescriptorSpirV {
    WGPUStringView label;
    uint32_t sourceSize;
    uint32_t const* source;
} WGPUShaderModuleDescriptorSpirV;

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

      public static final MemoryLayout.PathElement PATH$label
    • PATH$sourceSize

      public static final MemoryLayout.PathElement PATH$sourceSize
    • PATH$source

      public static final MemoryLayout.PathElement PATH$source
    • LAYOUT$label

      public static final StructLayout LAYOUT$label
    • LAYOUT$sourceSize

      public static final ValueLayout.OfInt LAYOUT$sourceSize
    • LAYOUT$source

      public static final AddressLayout LAYOUT$source
    • SIZE$label

      public static final long SIZE$label
    • SIZE$sourceSize

      public static final long SIZE$sourceSize
    • SIZE$source

      public static final long SIZE$source
    • OFFSET$label

      public static final long OFFSET$label
    • OFFSET$sourceSize

      public static final long OFFSET$sourceSize
    • OFFSET$source

      public static final long OFFSET$source
  • Constructor Details

    • WGPUShaderModuleDescriptorSpirV

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