Record Class WGPUBindGroupEntry

java.lang.Object
java.lang.Record
club.doki7.webgpu.datatype.WGPUBindGroupEntry
All Implemented Interfaces:
IPointer, IWGPUBindGroupEntry

@ValueBasedCandidate @UnsafeConstructor public record WGPUBindGroupEntry(@NotNull MemorySegment segment) extends Record implements IWGPUBindGroupEntry

Represents a pointer to a WGPUBindGroupEntry structure in native memory.

Structure

typedef struct WGPUBindGroupEntry {
    WGPUChainedStruct const* nextInChain; // optional
    uint32_t binding;
    WGPUBuffer buffer; // optional
    uint64_t offset;
    uint64_t size;
    WGPUSampler sampler; // optional
    WGPUTextureView textureView; // optional
} WGPUBindGroupEntry;

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

      public static final MemoryLayout.PathElement PATH$binding
    • PATH$buffer

      public static final MemoryLayout.PathElement PATH$buffer
    • PATH$offset

      public static final MemoryLayout.PathElement PATH$offset
    • PATH$size

      public static final MemoryLayout.PathElement PATH$size
    • PATH$sampler

      public static final MemoryLayout.PathElement PATH$sampler
    • PATH$textureView

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

      public static final AddressLayout LAYOUT$nextInChain
    • LAYOUT$binding

      public static final ValueLayout.OfInt LAYOUT$binding
    • LAYOUT$buffer

      public static final AddressLayout LAYOUT$buffer
    • LAYOUT$offset

      public static final ValueLayout.OfLong LAYOUT$offset
    • LAYOUT$size

      public static final ValueLayout.OfLong LAYOUT$size
    • LAYOUT$sampler

      public static final AddressLayout LAYOUT$sampler
    • LAYOUT$textureView

      public static final AddressLayout LAYOUT$textureView
    • SIZE$nextInChain

      public static final long SIZE$nextInChain
    • SIZE$binding

      public static final long SIZE$binding
    • SIZE$buffer

      public static final long SIZE$buffer
    • SIZE$offset

      public static final long SIZE$offset
    • SIZE$size

      public static final long SIZE$size
    • SIZE$sampler

      public static final long SIZE$sampler
    • SIZE$textureView

      public static final long SIZE$textureView
    • OFFSET$nextInChain

      public static final long OFFSET$nextInChain
    • OFFSET$binding

      public static final long OFFSET$binding
    • OFFSET$buffer

      public static final long OFFSET$buffer
    • OFFSET$offset

      public static final long OFFSET$offset
    • OFFSET$size

      public static final long OFFSET$size
    • OFFSET$sampler

      public static final long OFFSET$sampler
    • OFFSET$textureView

      public static final long OFFSET$textureView
  • Constructor Details

    • WGPUBindGroupEntry

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