Class VkVideoEncodeRateControlInfoKHR

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

public sealed class VkVideoEncodeRateControlInfoKHR extends GroupType permits VkVideoEncodeRateControlInfoKHR.Buffer

Layout

struct VkVideoEncodeRateControlInfoKHR {
    (int) VkStructureType sType;
    const void* pNext;
    ((uint32_t) VkFlags) VkVideoEncodeRateControlFlagsKHR flags;
    (int) VkVideoEncodeRateControlModeFlagBitsKHR rateControlMode;
    uint32_t layerCount;
    const VkVideoEncodeRateControlLayerInfoKHR* pLayers;
    uint32_t virtualBufferSizeInMs;
    uint32_t initialVirtualBufferSizeInMs;
};
  • Field Details

    • LAYOUT

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

      public static final long OFFSET_rateControlMode
      The byte offset of rateControlMode.
    • LAYOUT_rateControlMode

      public static final MemoryLayout LAYOUT_rateControlMode
      The memory layout of rateControlMode.
    • VH_rateControlMode

      public static final VarHandle VH_rateControlMode
      The VarHandle of rateControlMode of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_layerCount

      public static final long OFFSET_layerCount
      The byte offset of layerCount.
    • LAYOUT_layerCount

      public static final MemoryLayout LAYOUT_layerCount
      The memory layout of layerCount.
    • VH_layerCount

      public static final VarHandle VH_layerCount
      The VarHandle of layerCount of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_pLayers

      public static final long OFFSET_pLayers
      The byte offset of pLayers.
    • LAYOUT_pLayers

      public static final MemoryLayout LAYOUT_pLayers
      The memory layout of pLayers.
    • VH_pLayers

      public static final VarHandle VH_pLayers
      The VarHandle of pLayers of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_virtualBufferSizeInMs

      public static final long OFFSET_virtualBufferSizeInMs
      The byte offset of virtualBufferSizeInMs.
    • LAYOUT_virtualBufferSizeInMs

      public static final MemoryLayout LAYOUT_virtualBufferSizeInMs
      The memory layout of virtualBufferSizeInMs.
    • VH_virtualBufferSizeInMs

      public static final VarHandle VH_virtualBufferSizeInMs
      The VarHandle of virtualBufferSizeInMs of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_initialVirtualBufferSizeInMs

      public static final long OFFSET_initialVirtualBufferSizeInMs
      The byte offset of initialVirtualBufferSizeInMs.
    • LAYOUT_initialVirtualBufferSizeInMs

      public static final MemoryLayout LAYOUT_initialVirtualBufferSizeInMs
      The memory layout of initialVirtualBufferSizeInMs.
    • VH_initialVirtualBufferSizeInMs

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

    • VkVideoEncodeRateControlInfoKHR

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

    • of

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

      public static VkVideoEncodeRateControlInfoKHR ofNative(MemorySegment segment)

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

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

      public static VkVideoEncodeRateControlInfoKHR.Buffer alloc(SegmentAllocator allocator, long count)
      Allocates a VkVideoEncodeRateControlInfoKHR with the given segment allocator and count.
      Parameters:
      allocator - the segment allocator
      count - the count
      Returns:
      the allocated VkVideoEncodeRateControlInfoKHR
    • 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 VkVideoEncodeRateControlInfoKHR 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 VkVideoEncodeRateControlInfoKHR flags(int value)
      Sets flags with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • rateControlMode

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

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

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

      public VkVideoEncodeRateControlInfoKHR rateControlMode(int value)
      Sets rateControlMode with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • layerCount

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

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

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

      public VkVideoEncodeRateControlInfoKHR layerCount(int value)
      Sets layerCount with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • pLayers

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

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

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

      Sets pLayers with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • virtualBufferSizeInMs

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

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

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

      public VkVideoEncodeRateControlInfoKHR virtualBufferSizeInMs(int value)
      Sets virtualBufferSizeInMs with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • initialVirtualBufferSizeInMs

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

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

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

      public VkVideoEncodeRateControlInfoKHR initialVirtualBufferSizeInMs(int value)
      Sets initialVirtualBufferSizeInMs with the given value.
      Parameters:
      value - the value
      Returns:
      this