Record Class VkSpecializationInfo

java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.VkSpecializationInfo
All Implemented Interfaces:
IPointer, IVkSpecializationInfo

@ValueBasedCandidate @UnsafeConstructor public record VkSpecializationInfo(@NotNull MemorySegment segment) extends Record implements IVkSpecializationInfo

Represents a pointer to a VkSpecializationInfo structure in native memory.

Structure

typedef struct VkSpecializationInfo {
    uint32_t mapEntryCount; // optional
    VkSpecializationMapEntry const* pMapEntries;
    size_t dataSize; // optional
    void const* pData;
} VkSpecializationInfo;

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

      public static final MemoryLayout.PathElement PATH$mapEntryCount
    • PATH$pMapEntries

      public static final MemoryLayout.PathElement PATH$pMapEntries
    • PATH$dataSize

      public static final MemoryLayout.PathElement PATH$dataSize
    • PATH$pData

      public static final MemoryLayout.PathElement PATH$pData
    • LAYOUT$mapEntryCount

      public static final ValueLayout.OfInt LAYOUT$mapEntryCount
    • LAYOUT$pMapEntries

      public static final AddressLayout LAYOUT$pMapEntries
    • LAYOUT$pData

      public static final AddressLayout LAYOUT$pData
    • SIZE$mapEntryCount

      public static final long SIZE$mapEntryCount
    • SIZE$pMapEntries

      public static final long SIZE$pMapEntries
    • SIZE$dataSize

      public static final long SIZE$dataSize
    • SIZE$pData

      public static final long SIZE$pData
    • OFFSET$mapEntryCount

      public static final long OFFSET$mapEntryCount
    • OFFSET$pMapEntries

      public static final long OFFSET$pMapEntries
    • OFFSET$dataSize

      public static final long OFFSET$dataSize
    • OFFSET$pData

      public static final long OFFSET$pData
  • Constructor Details

    • VkSpecializationInfo

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