Class VkPhysicalDeviceProperties

java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.struct.VkPhysicalDeviceProperties
All Implemented Interfaces:
Addressable
Direct Known Subclasses:
VkPhysicalDeviceProperties.Buffer

public sealed class VkPhysicalDeviceProperties extends GroupType permits VkPhysicalDeviceProperties.Buffer

Layout

struct VkPhysicalDeviceProperties {
    uint32_t apiVersion;
    uint32_t driverVersion;
    uint32_t vendorID;
    uint32_t deviceID;
    (int) VkPhysicalDeviceType deviceType;
    char deviceName[256];
    uint8_t pipelineCacheUUID[16];
    (struct VkPhysicalDeviceLimits) VkPhysicalDeviceLimits limits;
    (struct VkPhysicalDeviceSparseProperties) VkPhysicalDeviceSparseProperties sparseProperties;
};
  • Field Details

    • LAYOUT

      public static final GroupLayout LAYOUT
      The struct layout of VkPhysicalDeviceProperties.
    • OFFSET_apiVersion

      public static final long OFFSET_apiVersion
      The byte offset of apiVersion.
    • LAYOUT_apiVersion

      public static final MemoryLayout LAYOUT_apiVersion
      The memory layout of apiVersion.
    • VH_apiVersion

      public static final VarHandle VH_apiVersion
      The VarHandle of apiVersion of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_driverVersion

      public static final long OFFSET_driverVersion
      The byte offset of driverVersion.
    • LAYOUT_driverVersion

      public static final MemoryLayout LAYOUT_driverVersion
      The memory layout of driverVersion.
    • VH_driverVersion

      public static final VarHandle VH_driverVersion
      The VarHandle of driverVersion of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_vendorID

      public static final long OFFSET_vendorID
      The byte offset of vendorID.
    • LAYOUT_vendorID

      public static final MemoryLayout LAYOUT_vendorID
      The memory layout of vendorID.
    • VH_vendorID

      public static final VarHandle VH_vendorID
      The VarHandle of vendorID of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_deviceID

      public static final long OFFSET_deviceID
      The byte offset of deviceID.
    • LAYOUT_deviceID

      public static final MemoryLayout LAYOUT_deviceID
      The memory layout of deviceID.
    • VH_deviceID

      public static final VarHandle VH_deviceID
      The VarHandle of deviceID of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_deviceType

      public static final long OFFSET_deviceType
      The byte offset of deviceType.
    • LAYOUT_deviceType

      public static final MemoryLayout LAYOUT_deviceType
      The memory layout of deviceType.
    • VH_deviceType

      public static final VarHandle VH_deviceType
      The VarHandle of deviceType of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_deviceName

      public static final long OFFSET_deviceName
      The byte offset of deviceName.
    • LAYOUT_deviceName

      public static final MemoryLayout LAYOUT_deviceName
      The memory layout of deviceName.
    • VH_deviceName

      public static final VarHandle VH_deviceName
      The VarHandle of deviceName of type (MemorySegment base, long baseOffset, long index, long index0)MemorySegment.
    • OFFSET_pipelineCacheUUID

      public static final long OFFSET_pipelineCacheUUID
      The byte offset of pipelineCacheUUID.
    • LAYOUT_pipelineCacheUUID

      public static final MemoryLayout LAYOUT_pipelineCacheUUID
      The memory layout of pipelineCacheUUID.
    • VH_pipelineCacheUUID

      public static final VarHandle VH_pipelineCacheUUID
      The VarHandle of pipelineCacheUUID of type (MemorySegment base, long baseOffset, long index, long index0)MemorySegment.
    • OFFSET_limits

      public static final long OFFSET_limits
      The byte offset of limits.
    • LAYOUT_limits

      public static final MemoryLayout LAYOUT_limits
      The memory layout of limits.
    • OFFSET_sparseProperties

      public static final long OFFSET_sparseProperties
      The byte offset of sparseProperties.
    • LAYOUT_sparseProperties

      public static final MemoryLayout LAYOUT_sparseProperties
      The memory layout of sparseProperties.
  • Constructor Details

    • VkPhysicalDeviceProperties

      public VkPhysicalDeviceProperties(MemorySegment segment)
      Creates VkPhysicalDeviceProperties with the given segment.
      Parameters:
      segment - the memory segment
  • Method Details

    • of

      Creates VkPhysicalDeviceProperties with the given segment.
      Parameters:
      segment - the memory segment
      Returns:
      the created instance or null if the segment is NULL
    • ofNative

      public static VkPhysicalDeviceProperties ofNative(MemorySegment segment)

      Creates VkPhysicalDeviceProperties with the given segment.

      Reinterprets the segment if zero-length.

      Parameters:
      segment - the memory segment
      Returns:
      the created instance or null if the segment is NULL
    • ofNative

      public static VkPhysicalDeviceProperties.Buffer ofNative(MemorySegment segment, long count)

      Creates VkPhysicalDeviceProperties with the given segment.

      Reinterprets the segment if zero-length.

      Parameters:
      segment - the memory segment
      count - the count of the buffer
      Returns:
      the created instance or null if the segment is NULL
    • alloc

      public static VkPhysicalDeviceProperties alloc(SegmentAllocator allocator)
      Allocates a VkPhysicalDeviceProperties with the given segment allocator.
      Parameters:
      allocator - the segment allocator
      Returns:
      the allocated VkPhysicalDeviceProperties
    • alloc

      public static VkPhysicalDeviceProperties.Buffer alloc(SegmentAllocator allocator, long count)
      Allocates a VkPhysicalDeviceProperties with the given segment allocator and count.
      Parameters:
      allocator - the segment allocator
      count - the count
      Returns:
      the allocated VkPhysicalDeviceProperties
    • copyFrom

      Copies from the given source.
      Parameters:
      src - the source
      Returns:
      this
    • asBuffer

      Converts this instance to a buffer.
      Returns:
      the buffer
    • apiVersion

      public static int apiVersion(MemorySegment segment, long index)
      Returns apiVersion at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      Returns:
      apiVersion at the given index
    • apiVersion

      public int apiVersion()
      Returns apiVersion.
      Returns:
      apiVersion
    • apiVersion

      public static void apiVersion(MemorySegment segment, long index, int value)
      Sets apiVersion with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      value - the value
    • apiVersion

      public VkPhysicalDeviceProperties apiVersion(int value)
      Sets apiVersion with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • driverVersion

      public static int driverVersion(MemorySegment segment, long index)
      Returns driverVersion at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      Returns:
      driverVersion at the given index
    • driverVersion

      public int driverVersion()
      Returns driverVersion.
      Returns:
      driverVersion
    • driverVersion

      public static void driverVersion(MemorySegment segment, long index, int value)
      Sets driverVersion with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      value - the value
    • driverVersion

      public VkPhysicalDeviceProperties driverVersion(int value)
      Sets driverVersion with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • vendorID

      public static int vendorID(MemorySegment segment, long index)
      Returns vendorID at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      Returns:
      vendorID at the given index
    • vendorID

      public int vendorID()
      Returns vendorID.
      Returns:
      vendorID
    • vendorID

      public static void vendorID(MemorySegment segment, long index, int value)
      Sets vendorID with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      value - the value
    • vendorID

      public VkPhysicalDeviceProperties vendorID(int value)
      Sets vendorID with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • deviceID

      public static int deviceID(MemorySegment segment, long index)
      Returns deviceID at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      Returns:
      deviceID at the given index
    • deviceID

      public int deviceID()
      Returns deviceID.
      Returns:
      deviceID
    • deviceID

      public static void deviceID(MemorySegment segment, long index, int value)
      Sets deviceID with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      value - the value
    • deviceID

      public VkPhysicalDeviceProperties deviceID(int value)
      Sets deviceID with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • deviceType

      public static int deviceType(MemorySegment segment, long index)
      Returns deviceType at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      Returns:
      deviceType at the given index
    • deviceType

      public int deviceType()
      Returns deviceType.
      Returns:
      deviceType
    • deviceType

      public static void deviceType(MemorySegment segment, long index, int value)
      Sets deviceType with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      value - the value
    • deviceType

      public VkPhysicalDeviceProperties deviceType(int value)
      Sets deviceType with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • deviceName

      public static MemorySegment deviceName(MemorySegment segment, long index)
      Returns deviceName at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      Returns:
      deviceName at the given index
    • deviceName

      public static byte deviceName(MemorySegment segment, long index, long index0)
      Returns deviceName at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      index0 - the Index 0 of the array
      Returns:
      deviceName at the given index
    • deviceName

      public MemorySegment deviceName()
      Returns deviceName.
      Returns:
      deviceName
    • deviceName

      public byte deviceName(long index0)
      Returns deviceName.
      Parameters:
      index0 - the Index 0 of the array
      Returns:
      deviceName
    • deviceName

      public static void deviceName(MemorySegment segment, long index, MemorySegment value)
      Sets deviceName with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      value - the value
    • deviceName

      public static void deviceName(MemorySegment segment, long index, long index0, byte value)
      Sets deviceName with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      index0 - the Index 0 of the array
      value - the value
    • deviceName

      public VkPhysicalDeviceProperties deviceName(MemorySegment value)
      Sets deviceName with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • deviceName

      public VkPhysicalDeviceProperties deviceName(long index0, byte value)
      Sets deviceName with the given value.
      Parameters:
      index0 - the Index 0 of the array
      value - the value
      Returns:
      this
    • pipelineCacheUUID

      public static MemorySegment pipelineCacheUUID(MemorySegment segment, long index)
      Returns pipelineCacheUUID at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      Returns:
      pipelineCacheUUID at the given index
    • pipelineCacheUUID

      public static byte pipelineCacheUUID(MemorySegment segment, long index, long index0)
      Returns pipelineCacheUUID at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      index0 - the Index 0 of the array
      Returns:
      pipelineCacheUUID at the given index
    • pipelineCacheUUID

      public MemorySegment pipelineCacheUUID()
      Returns pipelineCacheUUID.
      Returns:
      pipelineCacheUUID
    • pipelineCacheUUID

      public byte pipelineCacheUUID(long index0)
      Returns pipelineCacheUUID.
      Parameters:
      index0 - the Index 0 of the array
      Returns:
      pipelineCacheUUID
    • pipelineCacheUUID

      public static void pipelineCacheUUID(MemorySegment segment, long index, MemorySegment value)
      Sets pipelineCacheUUID with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      value - the value
    • pipelineCacheUUID

      public static void pipelineCacheUUID(MemorySegment segment, long index, long index0, byte value)
      Sets pipelineCacheUUID with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      index0 - the Index 0 of the array
      value - the value
    • pipelineCacheUUID

      public VkPhysicalDeviceProperties pipelineCacheUUID(MemorySegment value)
      Sets pipelineCacheUUID with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • pipelineCacheUUID

      public VkPhysicalDeviceProperties pipelineCacheUUID(long index0, byte value)
      Sets pipelineCacheUUID with the given value.
      Parameters:
      index0 - the Index 0 of the array
      value - the value
      Returns:
      this
    • limits

      public static MemorySegment limits(MemorySegment segment, long index)
      Returns limits at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      Returns:
      limits at the given index
    • limits

      public MemorySegment limits()
      Returns limits.
      Returns:
      limits
    • limits

      public static void limits(MemorySegment segment, long index, MemorySegment value)
      Sets limits with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      value - the value
    • limits

      Sets limits with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • sparseProperties

      public static MemorySegment sparseProperties(MemorySegment segment, long index)
      Returns sparseProperties at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      Returns:
      sparseProperties at the given index
    • sparseProperties

      public MemorySegment sparseProperties()
      Returns sparseProperties.
      Returns:
      sparseProperties
    • sparseProperties

      public static void sparseProperties(MemorySegment segment, long index, MemorySegment value)
      Sets sparseProperties with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      value - the value
    • sparseProperties

      public VkPhysicalDeviceProperties sparseProperties(MemorySegment value)
      Sets sparseProperties with the given value.
      Parameters:
      value - the value
      Returns:
      this