Class VkPipelineBinaryInfoKHR

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

public final class VkPipelineBinaryInfoKHR extends GroupType

Layout

struct VkPipelineBinaryInfoKHR {
    (int) VkStructureType sType;
    const void* pNext;
    uint32_t binaryCount;
    const VkPipelineBinaryKHR* pPipelineBinaries;
};
  • Field Details

    • LAYOUT

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

      public static final long OFFSET_binaryCount
      The byte offset of binaryCount.
    • LAYOUT_binaryCount

      public static final MemoryLayout LAYOUT_binaryCount
      The memory layout of binaryCount.
    • VH_binaryCount

      public static final VarHandle VH_binaryCount
      The VarHandle of binaryCount of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_pPipelineBinaries

      public static final long OFFSET_pPipelineBinaries
      The byte offset of pPipelineBinaries.
    • LAYOUT_pPipelineBinaries

      public static final MemoryLayout LAYOUT_pPipelineBinaries
      The memory layout of pPipelineBinaries.
    • VH_pPipelineBinaries

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

    • VkPipelineBinaryInfoKHR

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

    • of

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

      public static VkPipelineBinaryInfoKHR ofNative(MemorySegment segment)

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

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

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

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

      public VkPipelineBinaryInfoKHR 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 VkPipelineBinaryInfoKHR 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

      public VkPipelineBinaryInfoKHR pNext(MemorySegment value)
      Sets pNext with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • binaryCount

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

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

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

      public VkPipelineBinaryInfoKHR binaryCount(int value)
      Sets binaryCount with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • pPipelineBinaries

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

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

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

      public VkPipelineBinaryInfoKHR pPipelineBinaries(MemorySegment value)
      Sets pPipelineBinaries with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • asSlice

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

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

      Visits VkPipelineBinaryInfoKHR 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 VkPipelineBinaryInfoKHR 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 VkPipelineBinaryInfoKHR 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
    • binaryCountAt

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

      public VkPipelineBinaryInfoKHR binaryCountAt(long index, int value)
      Sets binaryCount with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • pPipelineBinariesAt

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

      public VkPipelineBinaryInfoKHR pPipelineBinariesAt(long index, MemorySegment value)
      Sets pPipelineBinaries with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this