Class VkBindVideoSessionMemoryInfoKHR

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

public sealed class VkBindVideoSessionMemoryInfoKHR extends GroupType permits VkBindVideoSessionMemoryInfoKHR.Buffer

Layout

struct VkBindVideoSessionMemoryInfoKHR {
    (int) VkStructureType sType;
    const void* pNext;
    uint32_t memoryBindIndex;
    (uint64_t) VkDeviceMemory memory;
    (uint64_t) VkDeviceSize memoryOffset;
    (uint64_t) VkDeviceSize memorySize;
};
  • Field Details

    • LAYOUT

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

      public static final long OFFSET_memoryBindIndex
      The byte offset of memoryBindIndex.
    • LAYOUT_memoryBindIndex

      public static final MemoryLayout LAYOUT_memoryBindIndex
      The memory layout of memoryBindIndex.
    • VH_memoryBindIndex

      public static final VarHandle VH_memoryBindIndex
      The VarHandle of memoryBindIndex of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_memory

      public static final long OFFSET_memory
      The byte offset of memory.
    • LAYOUT_memory

      public static final MemoryLayout LAYOUT_memory
      The memory layout of memory.
    • VH_memory

      public static final VarHandle VH_memory
      The VarHandle of memory of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_memoryOffset

      public static final long OFFSET_memoryOffset
      The byte offset of memoryOffset.
    • LAYOUT_memoryOffset

      public static final MemoryLayout LAYOUT_memoryOffset
      The memory layout of memoryOffset.
    • VH_memoryOffset

      public static final VarHandle VH_memoryOffset
      The VarHandle of memoryOffset of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_memorySize

      public static final long OFFSET_memorySize
      The byte offset of memorySize.
    • LAYOUT_memorySize

      public static final MemoryLayout LAYOUT_memorySize
      The memory layout of memorySize.
    • VH_memorySize

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

    • VkBindVideoSessionMemoryInfoKHR

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

    • of

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

      public static VkBindVideoSessionMemoryInfoKHR ofNative(MemorySegment segment)

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

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

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

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

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

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

      public VkBindVideoSessionMemoryInfoKHR memoryBindIndex(int value)
      Sets memoryBindIndex with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • memory

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

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

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

      public VkBindVideoSessionMemoryInfoKHR memory(long value)
      Sets memory with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • memoryOffset

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

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

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

      public VkBindVideoSessionMemoryInfoKHR memoryOffset(long value)
      Sets memoryOffset with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • memorySize

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

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

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

      public VkBindVideoSessionMemoryInfoKHR memorySize(long value)
      Sets memorySize with the given value.
      Parameters:
      value - the value
      Returns:
      this