Class VkImageCompressionControlEXT

java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.ext.struct.VkImageCompressionControlEXT
All Implemented Interfaces:
Addressable

public final class VkImageCompressionControlEXT extends GroupType

Layout

struct VkImageCompressionControlEXT {
    (int) VkStructureType sType;
    const void* pNext;
    ((uint32_t) VkFlags) VkImageCompressionFlagsEXT flags;
    uint32_t compressionControlPlaneCount;
    VkImageCompressionFixedRateFlagsEXT* pFixedRateFlags;
};
  • Field Details

    • LAYOUT

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

      public static final long OFFSET_flags
      The byte offset of flags.
    • LAYOUT_flags

      public static final MemoryLayout LAYOUT_flags
      The memory layout of flags.
    • VH_flags

      public static final VarHandle VH_flags
      The VarHandle of flags of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_compressionControlPlaneCount

      public static final long OFFSET_compressionControlPlaneCount
      The byte offset of compressionControlPlaneCount.
    • LAYOUT_compressionControlPlaneCount

      public static final MemoryLayout LAYOUT_compressionControlPlaneCount
      The memory layout of compressionControlPlaneCount.
    • VH_compressionControlPlaneCount

      public static final VarHandle VH_compressionControlPlaneCount
      The VarHandle of compressionControlPlaneCount of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_pFixedRateFlags

      public static final long OFFSET_pFixedRateFlags
      The byte offset of pFixedRateFlags.
    • LAYOUT_pFixedRateFlags

      public static final MemoryLayout LAYOUT_pFixedRateFlags
      The memory layout of pFixedRateFlags.
    • VH_pFixedRateFlags

      public static final VarHandle VH_pFixedRateFlags
      The VarHandle of pFixedRateFlags of type (MemorySegment base, long baseOffset, long index)MemorySegment.
  • Constructor Details

    • VkImageCompressionControlEXT

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

    • of

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

      public static VkImageCompressionControlEXT ofNative(MemorySegment segment)

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

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

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

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

      public VkImageCompressionControlEXT 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 VkImageCompressionControlEXT 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
    • flags

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

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

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

      public VkImageCompressionControlEXT flags(int value)
      Sets flags with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • compressionControlPlaneCount

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

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

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

      public VkImageCompressionControlEXT compressionControlPlaneCount(int value)
      Sets compressionControlPlaneCount with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • pFixedRateFlags

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

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

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

      public VkImageCompressionControlEXT pFixedRateFlags(MemorySegment value)
      Sets pFixedRateFlags with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • asSlice

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

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

      Visits VkImageCompressionControlEXT 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 VkImageCompressionControlEXT 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 VkImageCompressionControlEXT 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
    • flagsAt

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

      public VkImageCompressionControlEXT flagsAt(long index, int value)
      Sets flags with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • compressionControlPlaneCountAt

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

      public VkImageCompressionControlEXT compressionControlPlaneCountAt(long index, int value)
      Sets compressionControlPlaneCount with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • pFixedRateFlagsAt

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

      public VkImageCompressionControlEXT pFixedRateFlagsAt(long index, MemorySegment value)
      Sets pFixedRateFlags with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this