Class VkVideoEncodeH264FrameSizeKHR

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

public sealed class VkVideoEncodeH264FrameSizeKHR extends GroupType permits VkVideoEncodeH264FrameSizeKHR.Buffer

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)
      Creates VkVideoEncodeH264FrameSizeKHR with the given segment.
      Parameters:
      segment - the memory segment
  • Method Details

    • of

      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.Buffer 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.Buffer 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
    • asBuffer

      Converts this instance to a buffer.
      Returns:
      the 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