Record Class VkStridedDeviceAddressRegionKHR

java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.VkStridedDeviceAddressRegionKHR
All Implemented Interfaces:
IPointer, IVkStridedDeviceAddressRegionKHR

@ValueBasedCandidate @UnsafeConstructor public record VkStridedDeviceAddressRegionKHR(@NotNull MemorySegment segment) extends Record implements IVkStridedDeviceAddressRegionKHR

Represents a pointer to a VkStridedDeviceAddressRegionKHR structure in native memory.

Structure

typedef struct VkStridedDeviceAddressRegionKHR {
    VkDeviceAddress deviceAddress; // optional
    VkDeviceSize stride;
    VkDeviceSize size;
} VkStridedDeviceAddressRegionKHR;

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.

See Also:
  • Field Details

    • LAYOUT

      public static final StructLayout LAYOUT
    • BYTES

      public static final long BYTES
    • PATH$deviceAddress

      public static final MemoryLayout.PathElement PATH$deviceAddress
    • PATH$stride

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

      public static final MemoryLayout.PathElement PATH$size
    • LAYOUT$deviceAddress

      public static final ValueLayout.OfLong LAYOUT$deviceAddress
    • LAYOUT$stride

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

      public static final ValueLayout.OfLong LAYOUT$size
    • SIZE$deviceAddress

      public static final long SIZE$deviceAddress
    • SIZE$stride

      public static final long SIZE$stride
    • SIZE$size

      public static final long SIZE$size
    • OFFSET$deviceAddress

      public static final long OFFSET$deviceAddress
    • OFFSET$stride

      public static final long OFFSET$stride
    • OFFSET$size

      public static final long OFFSET$size
  • Constructor Details

    • VkStridedDeviceAddressRegionKHR

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