Class VkVideoPictureResourceInfoKHR

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

public sealed class VkVideoPictureResourceInfoKHR extends GroupType permits VkVideoPictureResourceInfoKHR.Buffer

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)
      Creates VkVideoPictureResourceInfoKHR with the given segment.
      Parameters:
      segment - the memory segment
  • Method Details

    • of

      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.Buffer 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.Buffer 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
    • asBuffer

      Converts this instance to a buffer.
      Returns:
      the 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
    • 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
    • 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