Class VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM

java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.qcom.struct.VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM
All Implemented Interfaces:
Addressable

public final class VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM extends GroupType

Layout

struct VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM {
    (int) VkStructureType sType;
    void* pNext;
    (struct VkExtent2D) VkExtent2D fragmentDensityOffsetGranularity;
};
  • Field Details

    • LAYOUT

      public static final GroupLayout LAYOUT
      The struct layout of VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM.
    • 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_fragmentDensityOffsetGranularity

      public static final long OFFSET_fragmentDensityOffsetGranularity
      The byte offset of fragmentDensityOffsetGranularity.
    • LAYOUT_fragmentDensityOffsetGranularity

      public static final MemoryLayout LAYOUT_fragmentDensityOffsetGranularity
      The memory layout of fragmentDensityOffsetGranularity.
  • Constructor Details

    • VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM

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

    • of

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

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

      Creates VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM 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

      Allocates a VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM with the given segment allocator.
      Parameters:
      allocator - the segment allocator
      Returns:
      the allocated VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM
    • alloc

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

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

      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

      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
    • fragmentDensityOffsetGranularity

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

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

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

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

      public VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM fragmentDensityOffsetGranularity(Consumer<VkExtent2D> func)
      Accepts fragmentDensityOffsetGranularity with the given function.
      Parameters:
      func - the function
      Returns:
      this
    • asSlice

      Creates a slice of VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM.
      Parameters:
      index - the index of the struct buffer
      Returns:
      the slice of VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM
    • asSlice

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

      Visits VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM 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 VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM 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

      Sets pNext with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • fragmentDensityOffsetGranularityAt

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

      public VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM fragmentDensityOffsetGranularityAt(long index, MemorySegment value)
      Sets fragmentDensityOffsetGranularity with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • fragmentDensityOffsetGranularityAt

      public VkPhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM fragmentDensityOffsetGranularityAt(long index, Consumer<VkExtent2D> func)
      Accepts fragmentDensityOffsetGranularity with the given function.
      Parameters:
      index - the index of the struct buffer
      func - the function
      Returns:
      this