Record Class WGPUAdapterInfo

java.lang.Object
java.lang.Record
club.doki7.webgpu.datatype.WGPUAdapterInfo
All Implemented Interfaces:
IPointer, IWGPUAdapterInfo

@ValueBasedCandidate @UnsafeConstructor public record WGPUAdapterInfo(@NotNull MemorySegment segment) extends Record implements IWGPUAdapterInfo

Represents a pointer to a WGPUAdapterInfo 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$vendor

      public static final MemoryLayout.PathElement PATH$vendor
    • PATH$architecture

      public static final MemoryLayout.PathElement PATH$architecture
    • PATH$device

      public static final MemoryLayout.PathElement PATH$device
    • PATH$description

      public static final MemoryLayout.PathElement PATH$description
    • PATH$backendType

      public static final MemoryLayout.PathElement PATH$backendType
    • PATH$adapterType

      public static final MemoryLayout.PathElement PATH$adapterType
    • PATH$vendorId

      public static final MemoryLayout.PathElement PATH$vendorId
    • PATH$deviceId

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

      public static final AddressLayout LAYOUT$nextInChain
    • LAYOUT$vendor

      public static final StructLayout LAYOUT$vendor
    • LAYOUT$architecture

      public static final StructLayout LAYOUT$architecture
    • LAYOUT$device

      public static final StructLayout LAYOUT$device
    • LAYOUT$description

      public static final StructLayout LAYOUT$description
    • LAYOUT$backendType

      public static final ValueLayout.OfInt LAYOUT$backendType
    • LAYOUT$adapterType

      public static final ValueLayout.OfInt LAYOUT$adapterType
    • LAYOUT$vendorId

      public static final ValueLayout.OfInt LAYOUT$vendorId
    • LAYOUT$deviceId

      public static final ValueLayout.OfInt LAYOUT$deviceId
    • SIZE$nextInChain

      public static final long SIZE$nextInChain
    • SIZE$vendor

      public static final long SIZE$vendor
    • SIZE$architecture

      public static final long SIZE$architecture
    • SIZE$device

      public static final long SIZE$device
    • SIZE$description

      public static final long SIZE$description
    • SIZE$backendType

      public static final long SIZE$backendType
    • SIZE$adapterType

      public static final long SIZE$adapterType
    • SIZE$vendorId

      public static final long SIZE$vendorId
    • SIZE$deviceId

      public static final long SIZE$deviceId
    • OFFSET$nextInChain

      public static final long OFFSET$nextInChain
    • OFFSET$vendor

      public static final long OFFSET$vendor
    • OFFSET$architecture

      public static final long OFFSET$architecture
    • OFFSET$device

      public static final long OFFSET$device
    • OFFSET$description

      public static final long OFFSET$description
    • OFFSET$backendType

      public static final long OFFSET$backendType
    • OFFSET$adapterType

      public static final long OFFSET$adapterType
    • OFFSET$vendorId

      public static final long OFFSET$vendorId
    • OFFSET$deviceId

      public static final long OFFSET$deviceId
  • Constructor Details

    • WGPUAdapterInfo

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