Record Class WGPUTexelCopyTextureInfo

java.lang.Object
java.lang.Record
club.doki7.webgpu.datatype.WGPUTexelCopyTextureInfo
All Implemented Interfaces:
IPointer, IWGPUTexelCopyTextureInfo

@ValueBasedCandidate @UnsafeConstructor public record WGPUTexelCopyTextureInfo(@NotNull MemorySegment segment) extends Record implements IWGPUTexelCopyTextureInfo

Represents a pointer to a WGPUTexelCopyTextureInfo structure in native memory.

Structure

typedef struct WGPUTexelCopyTextureInfo {
    WGPUTexture texture;
    uint32_t mipLevel;
    WGPUOrigin3d origin;
    WGPUTextureAspect aspect;
} WGPUTexelCopyTextureInfo;

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

      public static final MemoryLayout.PathElement PATH$texture
    • PATH$mipLevel

      public static final MemoryLayout.PathElement PATH$mipLevel
    • PATH$origin

      public static final MemoryLayout.PathElement PATH$origin
    • PATH$aspect

      public static final MemoryLayout.PathElement PATH$aspect
    • LAYOUT$texture

      public static final AddressLayout LAYOUT$texture
    • LAYOUT$mipLevel

      public static final ValueLayout.OfInt LAYOUT$mipLevel
    • LAYOUT$origin

      public static final StructLayout LAYOUT$origin
    • LAYOUT$aspect

      public static final ValueLayout.OfInt LAYOUT$aspect
    • SIZE$texture

      public static final long SIZE$texture
    • SIZE$mipLevel

      public static final long SIZE$mipLevel
    • SIZE$origin

      public static final long SIZE$origin
    • SIZE$aspect

      public static final long SIZE$aspect
    • OFFSET$texture

      public static final long OFFSET$texture
    • OFFSET$mipLevel

      public static final long OFFSET$mipLevel
    • OFFSET$origin

      public static final long OFFSET$origin
    • OFFSET$aspect

      public static final long OFFSET$aspect
  • Constructor Details

    • WGPUTexelCopyTextureInfo

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