Class VkVideoEncodeIntraRefreshInfoKHR

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

public final class VkVideoEncodeIntraRefreshInfoKHR extends GroupType

Layout

struct VkVideoEncodeIntraRefreshInfoKHR {
    (int) VkStructureType sType;
    const void* pNext;
    uint32_t intraRefreshCycleDuration;
    uint32_t intraRefreshIndex;
};
  • Field Details

    • LAYOUT

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

      public static final long OFFSET_intraRefreshCycleDuration
      The byte offset of intraRefreshCycleDuration.
    • LAYOUT_intraRefreshCycleDuration

      public static final MemoryLayout LAYOUT_intraRefreshCycleDuration
      The memory layout of intraRefreshCycleDuration.
    • VH_intraRefreshCycleDuration

      public static final VarHandle VH_intraRefreshCycleDuration
      The VarHandle of intraRefreshCycleDuration of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_intraRefreshIndex

      public static final long OFFSET_intraRefreshIndex
      The byte offset of intraRefreshIndex.
    • LAYOUT_intraRefreshIndex

      public static final MemoryLayout LAYOUT_intraRefreshIndex
      The memory layout of intraRefreshIndex.
    • VH_intraRefreshIndex

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

    • VkVideoEncodeIntraRefreshInfoKHR

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

    • of

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

      public static VkVideoEncodeIntraRefreshInfoKHR ofNative(MemorySegment segment)

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

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

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

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

      public VkVideoEncodeIntraRefreshInfoKHR reinterpret(long count)
      Reinterprets this buffer with the given count.
      Parameters:
      count - the new count
      Returns:
      the reinterpreted 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 VkVideoEncodeIntraRefreshInfoKHR 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
    • intraRefreshCycleDuration

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

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

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

      public VkVideoEncodeIntraRefreshInfoKHR intraRefreshCycleDuration(int value)
      Sets intraRefreshCycleDuration with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • intraRefreshIndex

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

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

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

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

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

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

      Visits VkVideoEncodeIntraRefreshInfoKHR 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
    • sTypeAt

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

      public VkVideoEncodeIntraRefreshInfoKHR sTypeAt(long index, int value)
      Sets sType with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • pNextAt

      public MemorySegment pNextAt(long index)
      Returns pNext at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      pNext at the given index
    • pNextAt

      public VkVideoEncodeIntraRefreshInfoKHR pNextAt(long index, MemorySegment value)
      Sets pNext with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • intraRefreshCycleDurationAt

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

      public VkVideoEncodeIntraRefreshInfoKHR intraRefreshCycleDurationAt(long index, int value)
      Sets intraRefreshCycleDuration with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • intraRefreshIndexAt

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

      public VkVideoEncodeIntraRefreshInfoKHR intraRefreshIndexAt(long index, int value)
      Sets intraRefreshIndex with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this