Record Class VkSparseImageMemoryRequirements

java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.VkSparseImageMemoryRequirements
All Implemented Interfaces:
IPointer, IVkSparseImageMemoryRequirements

@ValueBasedCandidate @UnsafeConstructor public record VkSparseImageMemoryRequirements(@NotNull MemorySegment segment) extends Record implements IVkSparseImageMemoryRequirements

Represents a pointer to a VkSparseImageMemoryRequirements structure in native memory.

Structure

typedef struct VkSparseImageMemoryRequirements {
    VkSparseImageFormatProperties formatProperties;
    uint32_t imageMipTailFirstLod;
    VkDeviceSize imageMipTailSize;
    VkDeviceSize imageMipTailOffset;
    VkDeviceSize imageMipTailStride;
} VkSparseImageMemoryRequirements;

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

      public static final MemoryLayout.PathElement PATH$formatProperties
    • PATH$imageMipTailFirstLod

      public static final MemoryLayout.PathElement PATH$imageMipTailFirstLod
    • PATH$imageMipTailSize

      public static final MemoryLayout.PathElement PATH$imageMipTailSize
    • PATH$imageMipTailOffset

      public static final MemoryLayout.PathElement PATH$imageMipTailOffset
    • PATH$imageMipTailStride

      public static final MemoryLayout.PathElement PATH$imageMipTailStride
    • LAYOUT$formatProperties

      public static final StructLayout LAYOUT$formatProperties
    • LAYOUT$imageMipTailFirstLod

      public static final ValueLayout.OfInt LAYOUT$imageMipTailFirstLod
    • LAYOUT$imageMipTailSize

      public static final ValueLayout.OfLong LAYOUT$imageMipTailSize
    • LAYOUT$imageMipTailOffset

      public static final ValueLayout.OfLong LAYOUT$imageMipTailOffset
    • LAYOUT$imageMipTailStride

      public static final ValueLayout.OfLong LAYOUT$imageMipTailStride
    • SIZE$formatProperties

      public static final long SIZE$formatProperties
    • SIZE$imageMipTailFirstLod

      public static final long SIZE$imageMipTailFirstLod
    • SIZE$imageMipTailSize

      public static final long SIZE$imageMipTailSize
    • SIZE$imageMipTailOffset

      public static final long SIZE$imageMipTailOffset
    • SIZE$imageMipTailStride

      public static final long SIZE$imageMipTailStride
    • OFFSET$formatProperties

      public static final long OFFSET$formatProperties
    • OFFSET$imageMipTailFirstLod

      public static final long OFFSET$imageMipTailFirstLod
    • OFFSET$imageMipTailSize

      public static final long OFFSET$imageMipTailSize
    • OFFSET$imageMipTailOffset

      public static final long OFFSET$imageMipTailOffset
    • OFFSET$imageMipTailStride

      public static final long OFFSET$imageMipTailStride
  • Constructor Details

    • VkSparseImageMemoryRequirements

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