Class VkVideoProfileListInfoKHR

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

public sealed class VkVideoProfileListInfoKHR extends GroupType permits VkVideoProfileListInfoKHR.Buffer

Layout

struct VkVideoProfileListInfoKHR {
    (int) VkStructureType sType;
    const void* pNext;
    uint32_t profileCount;
    const VkVideoProfileInfoKHR* pProfiles;
};
  • Field Details

    • LAYOUT

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

      public static final long OFFSET_profileCount
      The byte offset of profileCount.
    • LAYOUT_profileCount

      public static final MemoryLayout LAYOUT_profileCount
      The memory layout of profileCount.
    • VH_profileCount

      public static final VarHandle VH_profileCount
      The VarHandle of profileCount of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_pProfiles

      public static final long OFFSET_pProfiles
      The byte offset of pProfiles.
    • LAYOUT_pProfiles

      public static final MemoryLayout LAYOUT_pProfiles
      The memory layout of pProfiles.
    • VH_pProfiles

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

    • VkVideoProfileListInfoKHR

      public VkVideoProfileListInfoKHR(MemorySegment segment)
      Creates VkVideoProfileListInfoKHR with the given segment.
      Parameters:
      segment - the memory segment
  • Method Details

    • of

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

      public static VkVideoProfileListInfoKHR ofNative(MemorySegment segment)

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

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

      public static VkVideoProfileListInfoKHR.Buffer alloc(SegmentAllocator allocator, long count)
      Allocates a VkVideoProfileListInfoKHR with the given segment allocator and count.
      Parameters:
      allocator - the segment allocator
      count - the count
      Returns:
      the allocated VkVideoProfileListInfoKHR
    • 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 VkVideoProfileListInfoKHR 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
    • profileCount

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

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

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

      public VkVideoProfileListInfoKHR profileCount(int value)
      Sets profileCount with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • pProfiles

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

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

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

      public VkVideoProfileListInfoKHR pProfiles(MemorySegment value)
      Sets pProfiles with the given value.
      Parameters:
      value - the value
      Returns:
      this