Class VkPhysicalDeviceProperties2KHR

java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.khr.struct.VkPhysicalDeviceProperties2KHR
All Implemented Interfaces:
Addressable

public final class VkPhysicalDeviceProperties2KHR extends GroupType

Layout

struct VkPhysicalDeviceProperties2KHR {
    (int) VkStructureType sType;
    void* pNext;
    (struct VkPhysicalDeviceProperties) VkPhysicalDeviceProperties properties;
};
  • Field Details

    • LAYOUT

      public static final GroupLayout LAYOUT
      The struct layout of VkPhysicalDeviceProperties2KHR.
    • OFFSET_sType

      public static final long OFFSET_sType
      The byte offset of sType.
    • LAYOUT_sType

      public static final MemoryLayout LAYOUT_sType
      The memory layout of sType.
    • VH_sType

      public static final VarHandle VH_sType
      The VarHandle of sType of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_pNext

      public static final long OFFSET_pNext
      The byte offset of pNext.
    • LAYOUT_pNext

      public static final MemoryLayout LAYOUT_pNext
      The memory layout of pNext.
    • VH_pNext

      public static final VarHandle VH_pNext
      The VarHandle of pNext of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_properties

      public static final long OFFSET_properties
      The byte offset of properties.
    • LAYOUT_properties

      public static final MemoryLayout LAYOUT_properties
      The memory layout of properties.
  • Constructor Details

    • VkPhysicalDeviceProperties2KHR

      public VkPhysicalDeviceProperties2KHR(MemorySegment segment, long elementCount)
      Creates VkPhysicalDeviceProperties2KHR with the given segment.
      Parameters:
      segment - the memory segment
      elementCount - the element count of this struct buffer
  • Method Details

    • of

      public static VkPhysicalDeviceProperties2KHR of(MemorySegment segment)
      Creates VkPhysicalDeviceProperties2KHR with the given segment.
      Parameters:
      segment - the memory segment
      Returns:
      the created instance or null if the segment is NULL
    • ofNative

      public static VkPhysicalDeviceProperties2KHR ofNative(MemorySegment segment)

      Creates VkPhysicalDeviceProperties2KHR 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 VkPhysicalDeviceProperties2KHR ofNative(MemorySegment segment, long count)

      Creates VkPhysicalDeviceProperties2KHR 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 VkPhysicalDeviceProperties2KHR alloc(SegmentAllocator allocator)
      Allocates a VkPhysicalDeviceProperties2KHR with the given segment allocator.
      Parameters:
      allocator - the segment allocator
      Returns:
      the allocated VkPhysicalDeviceProperties2KHR
    • alloc

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

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

      public VkPhysicalDeviceProperties2KHR reinterpret(long count)
      Reinterprets this buffer with the given count.
      Parameters:
      count - the new count
      Returns:
      the reinterpreted buffer
    • sType

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

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

      public static void sType(MemorySegment segment, long index, int value)
      Sets sType 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
    • sType

      public VkPhysicalDeviceProperties2KHR sType(int value)
      Sets sType with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • pNext

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

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

      public static void pNext(MemorySegment segment, long index, MemorySegment value)
      Sets pNext 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
    • pNext

      Sets pNext with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • properties

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

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

      public static void properties(MemorySegment segment, long index, MemorySegment value)
      Sets properties 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
    • properties

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

      Accepts properties with the given function.
      Parameters:
      func - the function
      Returns:
      this
    • asSlice

      public VkPhysicalDeviceProperties2KHR asSlice(long index)
      Creates a slice of VkPhysicalDeviceProperties2KHR.
      Parameters:
      index - the index of the struct buffer
      Returns:
      the slice of VkPhysicalDeviceProperties2KHR
    • asSlice

      public VkPhysicalDeviceProperties2KHR asSlice(long index, long count)
      Creates a slice of VkPhysicalDeviceProperties2KHR.
      Parameters:
      index - the index of the struct buffer
      count - the count
      Returns:
      the slice of VkPhysicalDeviceProperties2KHR
    • at

      Visits VkPhysicalDeviceProperties2KHR buffer at the given index.
      Parameters:
      index - the index of this buffer
      func - the function to run with the slice of this buffer
      Returns:
      this
    • sTypeAt

      public int sTypeAt(long index)
      Returns sType at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      sType at the given index
    • sTypeAt

      public VkPhysicalDeviceProperties2KHR sTypeAt(long index, int value)
      Sets sType with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • pNextAt

      public MemorySegment pNextAt(long index)
      Returns pNext at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      pNext at the given index
    • pNextAt

      public VkPhysicalDeviceProperties2KHR pNextAt(long index, MemorySegment value)
      Sets pNext with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • propertiesAt

      public MemorySegment propertiesAt(long index)
      Returns properties at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      properties at the given index
    • propertiesAt

      public VkPhysicalDeviceProperties2KHR propertiesAt(long index, MemorySegment value)
      Sets properties with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • propertiesAt

      public VkPhysicalDeviceProperties2KHR propertiesAt(long index, Consumer<VkPhysicalDeviceProperties> func)
      Accepts properties with the given function.
      Parameters:
      index - the index of the struct buffer
      func - the function
      Returns:
      this