Class VkVideoEncodeH264FrameSizeKHR

java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.khr.struct.VkVideoEncodeH264FrameSizeKHR
All Implemented Interfaces:
Addressable

public final class VkVideoEncodeH264FrameSizeKHR extends GroupType

Layout

struct VkVideoEncodeH264FrameSizeKHR {
    uint32_t frameISize;
    uint32_t framePSize;
    uint32_t frameBSize;
};
  • Field Details

    • LAYOUT

      public static final GroupLayout LAYOUT
      The struct layout of VkVideoEncodeH264FrameSizeKHR.
    • OFFSET_frameISize

      public static final long OFFSET_frameISize
      The byte offset of frameISize.
    • LAYOUT_frameISize

      public static final MemoryLayout LAYOUT_frameISize
      The memory layout of frameISize.
    • VH_frameISize

      public static final VarHandle VH_frameISize
      The VarHandle of frameISize of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_framePSize

      public static final long OFFSET_framePSize
      The byte offset of framePSize.
    • LAYOUT_framePSize

      public static final MemoryLayout LAYOUT_framePSize
      The memory layout of framePSize.
    • VH_framePSize

      public static final VarHandle VH_framePSize
      The VarHandle of framePSize of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_frameBSize

      public static final long OFFSET_frameBSize
      The byte offset of frameBSize.
    • LAYOUT_frameBSize

      public static final MemoryLayout LAYOUT_frameBSize
      The memory layout of frameBSize.
    • VH_frameBSize

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

    • VkVideoEncodeH264FrameSizeKHR

      public VkVideoEncodeH264FrameSizeKHR(MemorySegment segment, long elementCount)
      Creates VkVideoEncodeH264FrameSizeKHR with the given segment.
      Parameters:
      segment - the memory segment
      elementCount - the element count of this struct buffer
  • Method Details

    • of

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

      public static VkVideoEncodeH264FrameSizeKHR ofNative(MemorySegment segment)

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

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

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

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

      public VkVideoEncodeH264FrameSizeKHR reinterpret(long count)
      Reinterprets this buffer with the given count.
      Parameters:
      count - the new count
      Returns:
      the reinterpreted buffer
    • frameISize

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

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

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

      public VkVideoEncodeH264FrameSizeKHR frameISize(int value)
      Sets frameISize with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • framePSize

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

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

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

      public VkVideoEncodeH264FrameSizeKHR framePSize(int value)
      Sets framePSize with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • frameBSize

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

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

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

      public VkVideoEncodeH264FrameSizeKHR frameBSize(int value)
      Sets frameBSize with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • asSlice

      public VkVideoEncodeH264FrameSizeKHR asSlice(long index)
      Creates a slice of VkVideoEncodeH264FrameSizeKHR.
      Parameters:
      index - the index of the struct buffer
      Returns:
      the slice of VkVideoEncodeH264FrameSizeKHR
    • asSlice

      public VkVideoEncodeH264FrameSizeKHR asSlice(long index, long count)
      Creates a slice of VkVideoEncodeH264FrameSizeKHR.
      Parameters:
      index - the index of the struct buffer
      count - the count
      Returns:
      the slice of VkVideoEncodeH264FrameSizeKHR
    • at

      Visits VkVideoEncodeH264FrameSizeKHR buffer at the given index.
      Parameters:
      index - the index of this buffer
      func - the function to run with the slice of this buffer
      Returns:
      this
    • frameISizeAt

      public int frameISizeAt(long index)
      Returns frameISize at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      frameISize at the given index
    • frameISizeAt

      public VkVideoEncodeH264FrameSizeKHR frameISizeAt(long index, int value)
      Sets frameISize with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • framePSizeAt

      public int framePSizeAt(long index)
      Returns framePSize at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      framePSize at the given index
    • framePSizeAt

      public VkVideoEncodeH264FrameSizeKHR framePSizeAt(long index, int value)
      Sets framePSize with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • frameBSizeAt

      public int frameBSizeAt(long index)
      Returns frameBSize at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      frameBSize at the given index
    • frameBSizeAt

      public VkVideoEncodeH264FrameSizeKHR frameBSizeAt(long index, int value)
      Sets frameBSize with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this