Class VkSemaphoreSubmitInfo

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

public sealed class VkSemaphoreSubmitInfo extends GroupType permits VkSemaphoreSubmitInfo.Buffer

Layout

struct VkSemaphoreSubmitInfo {
    (int) VkStructureType sType;
    const void* pNext;
    (uint64_t) VkSemaphore semaphore;
    uint64_t value;
    ((uint64_t) VkFlags64) VkPipelineStageFlags2 stageMask;
    uint32_t deviceIndex;
};
  • Field Details

    • LAYOUT

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

      public static final long OFFSET_semaphore
      The byte offset of semaphore.
    • LAYOUT_semaphore

      public static final MemoryLayout LAYOUT_semaphore
      The memory layout of semaphore.
    • VH_semaphore

      public static final VarHandle VH_semaphore
      The VarHandle of semaphore of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_value

      public static final long OFFSET_value
      The byte offset of value.
    • LAYOUT_value

      public static final MemoryLayout LAYOUT_value
      The memory layout of value.
    • VH_value

      public static final VarHandle VH_value
      The VarHandle of value of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_stageMask

      public static final long OFFSET_stageMask
      The byte offset of stageMask.
    • LAYOUT_stageMask

      public static final MemoryLayout LAYOUT_stageMask
      The memory layout of stageMask.
    • VH_stageMask

      public static final VarHandle VH_stageMask
      The VarHandle of stageMask of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_deviceIndex

      public static final long OFFSET_deviceIndex
      The byte offset of deviceIndex.
    • LAYOUT_deviceIndex

      public static final MemoryLayout LAYOUT_deviceIndex
      The memory layout of deviceIndex.
    • VH_deviceIndex

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

    • VkSemaphoreSubmitInfo

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

    • of

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

      public static VkSemaphoreSubmitInfo ofNative(MemorySegment segment)

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

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

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

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

      public VkSemaphoreSubmitInfo.Buffer asBuffer()
      Converts this instance to a buffer.
      Returns:
      the 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 VkSemaphoreSubmitInfo 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 VkSemaphoreSubmitInfo pNext(MemorySegment value)
      Sets pNext with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • semaphore

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

      public long semaphore()
      Returns semaphore.
      Returns:
      semaphore
    • semaphore

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

      public VkSemaphoreSubmitInfo semaphore(long value)
      Sets semaphore with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • value

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

      public long value()
      Returns value.
      Returns:
      value
    • value

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

      public VkSemaphoreSubmitInfo value(long value)
      Sets value with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • stageMask

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

      public long stageMask()
      Returns stageMask.
      Returns:
      stageMask
    • stageMask

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

      public VkSemaphoreSubmitInfo stageMask(long value)
      Sets stageMask with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • deviceIndex

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

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

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

      public VkSemaphoreSubmitInfo deviceIndex(int value)
      Sets deviceIndex with the given value.
      Parameters:
      value - the value
      Returns:
      this