Record Class VkSubmitInfo2

java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.VkSubmitInfo2
All Implemented Interfaces:
IPointer, IVkSubmitInfo2

@ValueBasedCandidate @UnsafeConstructor public record VkSubmitInfo2(@NotNull MemorySegment segment) extends Record implements IVkSubmitInfo2

Represents a pointer to a VkSubmitInfo2 structure in native memory.

Structure Link icon

typedef struct VkSubmitInfo2 {
    VkStructureType sType;
    void const* pNext; // optional
    VkSubmitFlags flags; // optional
    uint32_t waitSemaphoreInfoCount; // optional
    VkSemaphoreSubmitInfo const* pWaitSemaphoreInfos; // optional
    uint32_t commandBufferInfoCount; // optional
    VkCommandBufferSubmitInfo const* pCommandBufferInfos; // optional
    uint32_t signalSemaphoreInfoCount; // optional
    VkSemaphoreSubmitInfo const* pSignalSemaphoreInfos; // optional
} VkSubmitInfo2;

Auto initialization Link icon

This structure has the following members that can be automatically initialized:

  • sType = VK_STRUCTURE_TYPE_SUBMIT_INFO_2

The allocate (allocate(Arena), allocate(Arena, long)) functions will automatically initialize these fields. Also, you may call autoInit() to initialize these fields manually for non-allocated instances.

Contracts Link icon

The property segment() should always be not-null (segment != NULL && !segment.equals(MemorySegment.NULL)), and properly aligned to LAYOUT.byteAlignment() bytes. To represent null pointer, you may use a Java null instead. See the documentation of IPointer.segment() for more details.

The constructor of this class is marked as UnsafeConstructor, because it does not perform any runtime check. The constructor can be useful for automatic code generators.

See Also:
  • Field Details Link icon

    • LAYOUT Link icon

      public static final StructLayout LAYOUT
    • BYTES Link icon

      public static final long BYTES
    • PATH$sType Link icon

      public static final MemoryLayout.PathElement PATH$sType
    • PATH$pNext Link icon

      public static final MemoryLayout.PathElement PATH$pNext
    • PATH$flags Link icon

      public static final MemoryLayout.PathElement PATH$flags
    • PATH$waitSemaphoreInfoCount Link icon

      public static final MemoryLayout.PathElement PATH$waitSemaphoreInfoCount
    • PATH$pWaitSemaphoreInfos Link icon

      public static final MemoryLayout.PathElement PATH$pWaitSemaphoreInfos
    • PATH$commandBufferInfoCount Link icon

      public static final MemoryLayout.PathElement PATH$commandBufferInfoCount
    • PATH$pCommandBufferInfos Link icon

      public static final MemoryLayout.PathElement PATH$pCommandBufferInfos
    • PATH$signalSemaphoreInfoCount Link icon

      public static final MemoryLayout.PathElement PATH$signalSemaphoreInfoCount
    • PATH$pSignalSemaphoreInfos Link icon

      public static final MemoryLayout.PathElement PATH$pSignalSemaphoreInfos
    • LAYOUT$sType Link icon

      public static final ValueLayout.OfInt LAYOUT$sType
    • LAYOUT$pNext Link icon

      public static final AddressLayout LAYOUT$pNext
    • LAYOUT$flags Link icon

      public static final ValueLayout.OfInt LAYOUT$flags
    • LAYOUT$waitSemaphoreInfoCount Link icon

      public static final ValueLayout.OfInt LAYOUT$waitSemaphoreInfoCount
    • LAYOUT$pWaitSemaphoreInfos Link icon

      public static final AddressLayout LAYOUT$pWaitSemaphoreInfos
    • LAYOUT$commandBufferInfoCount Link icon

      public static final ValueLayout.OfInt LAYOUT$commandBufferInfoCount
    • LAYOUT$pCommandBufferInfos Link icon

      public static final AddressLayout LAYOUT$pCommandBufferInfos
    • LAYOUT$signalSemaphoreInfoCount Link icon

      public static final ValueLayout.OfInt LAYOUT$signalSemaphoreInfoCount
    • LAYOUT$pSignalSemaphoreInfos Link icon

      public static final AddressLayout LAYOUT$pSignalSemaphoreInfos
    • SIZE$sType Link icon

      public static final long SIZE$sType
    • SIZE$pNext Link icon

      public static final long SIZE$pNext
    • SIZE$flags Link icon

      public static final long SIZE$flags
    • SIZE$waitSemaphoreInfoCount Link icon

      public static final long SIZE$waitSemaphoreInfoCount
    • SIZE$pWaitSemaphoreInfos Link icon

      public static final long SIZE$pWaitSemaphoreInfos
    • SIZE$commandBufferInfoCount Link icon

      public static final long SIZE$commandBufferInfoCount
    • SIZE$pCommandBufferInfos Link icon

      public static final long SIZE$pCommandBufferInfos
    • SIZE$signalSemaphoreInfoCount Link icon

      public static final long SIZE$signalSemaphoreInfoCount
    • SIZE$pSignalSemaphoreInfos Link icon

      public static final long SIZE$pSignalSemaphoreInfos
    • OFFSET$sType Link icon

      public static final long OFFSET$sType
    • OFFSET$pNext Link icon

      public static final long OFFSET$pNext
    • OFFSET$flags Link icon

      public static final long OFFSET$flags
    • OFFSET$waitSemaphoreInfoCount Link icon

      public static final long OFFSET$waitSemaphoreInfoCount
    • OFFSET$pWaitSemaphoreInfos Link icon

      public static final long OFFSET$pWaitSemaphoreInfos
    • OFFSET$commandBufferInfoCount Link icon

      public static final long OFFSET$commandBufferInfoCount
    • OFFSET$pCommandBufferInfos Link icon

      public static final long OFFSET$pCommandBufferInfos
    • OFFSET$signalSemaphoreInfoCount Link icon

      public static final long OFFSET$signalSemaphoreInfoCount
    • OFFSET$pSignalSemaphoreInfos Link icon

      public static final long OFFSET$pSignalSemaphoreInfos
  • Constructor Details Link icon

    • VkSubmitInfo2 Link icon

      public VkSubmitInfo2(@NotNull @NotNull MemorySegment segment)
      Creates an instance of a VkSubmitInfo2 record class.
      Parameters:
      segment - the value for the segment record component
  • Method Details Link icon