Class VkVideoEncodeH265QpKHR

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

public sealed class VkVideoEncodeH265QpKHR extends GroupType permits VkVideoEncodeH265QpKHR.Buffer

Layout

struct VkVideoEncodeH265QpKHR {
    int32_t qpI;
    int32_t qpP;
    int32_t qpB;
};
  • Field Details

    • LAYOUT

      public static final GroupLayout LAYOUT
      The struct layout of VkVideoEncodeH265QpKHR.
    • OFFSET_qpI

      public static final long OFFSET_qpI
      The byte offset of qpI.
    • LAYOUT_qpI

      public static final MemoryLayout LAYOUT_qpI
      The memory layout of qpI.
    • VH_qpI

      public static final VarHandle VH_qpI
      The VarHandle of qpI of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_qpP

      public static final long OFFSET_qpP
      The byte offset of qpP.
    • LAYOUT_qpP

      public static final MemoryLayout LAYOUT_qpP
      The memory layout of qpP.
    • VH_qpP

      public static final VarHandle VH_qpP
      The VarHandle of qpP of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_qpB

      public static final long OFFSET_qpB
      The byte offset of qpB.
    • LAYOUT_qpB

      public static final MemoryLayout LAYOUT_qpB
      The memory layout of qpB.
    • VH_qpB

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

    • VkVideoEncodeH265QpKHR

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

    • of

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

      public static VkVideoEncodeH265QpKHR ofNative(MemorySegment segment)

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

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

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

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

      public VkVideoEncodeH265QpKHR.Buffer asBuffer()
      Converts this instance to a buffer.
      Returns:
      the buffer
    • qpI

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

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

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

      public VkVideoEncodeH265QpKHR qpI(int value)
      Sets qpI with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • qpP

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

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

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

      public VkVideoEncodeH265QpKHR qpP(int value)
      Sets qpP with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • qpB

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

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

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

      public VkVideoEncodeH265QpKHR qpB(int value)
      Sets qpB with the given value.
      Parameters:
      value - the value
      Returns:
      this