Class VkVideoPictureResourceInfoKHR

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

public final class VkVideoPictureResourceInfoKHR extends GroupType

Layout

struct VkVideoPictureResourceInfoKHR {
    (int) VkStructureType sType;
    const void* pNext;
    (struct VkOffset2D) VkOffset2D codedOffset;
    (struct VkExtent2D) VkExtent2D codedExtent;
    uint32_t baseArrayLayer;
    (uint64_t) VkImageView imageViewBinding;
};
  • Field Details

    • LAYOUT

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

      public static final long OFFSET_codedOffset
      The byte offset of codedOffset.
    • LAYOUT_codedOffset

      public static final MemoryLayout LAYOUT_codedOffset
      The memory layout of codedOffset.
    • OFFSET_codedExtent

      public static final long OFFSET_codedExtent
      The byte offset of codedExtent.
    • LAYOUT_codedExtent

      public static final MemoryLayout LAYOUT_codedExtent
      The memory layout of codedExtent.
    • OFFSET_baseArrayLayer

      public static final long OFFSET_baseArrayLayer
      The byte offset of baseArrayLayer.
    • LAYOUT_baseArrayLayer

      public static final MemoryLayout LAYOUT_baseArrayLayer
      The memory layout of baseArrayLayer.
    • VH_baseArrayLayer

      public static final VarHandle VH_baseArrayLayer
      The VarHandle of baseArrayLayer of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_imageViewBinding

      public static final long OFFSET_imageViewBinding
      The byte offset of imageViewBinding.
    • LAYOUT_imageViewBinding

      public static final MemoryLayout LAYOUT_imageViewBinding
      The memory layout of imageViewBinding.
    • VH_imageViewBinding

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

    • VkVideoPictureResourceInfoKHR

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

    • of

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

      public static VkVideoPictureResourceInfoKHR ofNative(MemorySegment segment)

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

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

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

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

      public VkVideoPictureResourceInfoKHR 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 VkVideoPictureResourceInfoKHR 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
    • codedOffset

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

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

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

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

      Accepts codedOffset with the given function.
      Parameters:
      func - the function
      Returns:
      this
    • codedExtent

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

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

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

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

      Accepts codedExtent with the given function.
      Parameters:
      func - the function
      Returns:
      this
    • baseArrayLayer

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

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

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

      public VkVideoPictureResourceInfoKHR baseArrayLayer(int value)
      Sets baseArrayLayer with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • imageViewBinding

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

      public long imageViewBinding()
      Returns imageViewBinding.
      Returns:
      imageViewBinding
    • imageViewBinding

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

      public VkVideoPictureResourceInfoKHR imageViewBinding(long value)
      Sets imageViewBinding with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • asSlice

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

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

      Visits VkVideoPictureResourceInfoKHR 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 VkVideoPictureResourceInfoKHR 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 VkVideoPictureResourceInfoKHR 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
    • codedOffsetAt

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

      public VkVideoPictureResourceInfoKHR codedOffsetAt(long index, MemorySegment value)
      Sets codedOffset with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • codedOffsetAt

      public VkVideoPictureResourceInfoKHR codedOffsetAt(long index, Consumer<VkOffset2D> func)
      Accepts codedOffset with the given function.
      Parameters:
      index - the index of the struct buffer
      func - the function
      Returns:
      this
    • codedExtentAt

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

      public VkVideoPictureResourceInfoKHR codedExtentAt(long index, MemorySegment value)
      Sets codedExtent with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • codedExtentAt

      public VkVideoPictureResourceInfoKHR codedExtentAt(long index, Consumer<VkExtent2D> func)
      Accepts codedExtent with the given function.
      Parameters:
      index - the index of the struct buffer
      func - the function
      Returns:
      this
    • baseArrayLayerAt

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

      public VkVideoPictureResourceInfoKHR baseArrayLayerAt(long index, int value)
      Sets baseArrayLayer with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • imageViewBindingAt

      public long imageViewBindingAt(long index)
      Returns imageViewBinding at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      imageViewBinding at the given index
    • imageViewBindingAt

      public VkVideoPictureResourceInfoKHR imageViewBindingAt(long index, long value)
      Sets imageViewBinding with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this