Class VkSemaphoreSubmitInfo

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
Direct Known Subclasses:
VkSemaphoreSubmitInfoKHR

public class VkSemaphoreSubmitInfo extends Struct<VkSemaphoreSubmitInfo> implements NativeResource

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

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • STYPE

      public static final int STYPE
      The struct member offsets.
    • PNEXT

      public static final int PNEXT
      The struct member offsets.
    • SEMAPHORE

      public static final int SEMAPHORE
      The struct member offsets.
    • VALUE

      public static final int VALUE
      The struct member offsets.
    • STAGEMASK

      public static final int STAGEMASK
      The struct member offsets.
    • DEVICEINDEX

      public static final int DEVICEINDEX
      The struct member offsets.
  • Constructor Details

    • VkSemaphoreSubmitInfo

      public VkSemaphoreSubmitInfo(ByteBuffer container)
      Creates a VkSemaphoreSubmitInfo instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<VkSemaphoreSubmitInfo>
    • sType

      public int sType()
      Returns:
      the value of the sType field.
    • pNext

      public long pNext()
      Returns:
      the value of the pNext field.
    • semaphore

      public long semaphore()
      Returns:
      the value of the semaphore field.
    • value

      public long value()
      Returns:
      the value of the value field.
    • stageMask

      public long stageMask()
      Returns:
      the value of the stageMask field.
    • deviceIndex

      public int deviceIndex()
      Returns:
      the value of the deviceIndex field.
    • sType

      public VkSemaphoreSubmitInfo sType(int value)
      Sets the specified value to the sType field.
    • sType$Default

      public VkSemaphoreSubmitInfo sType$Default()
      Sets the STRUCTURE_TYPE_SEMAPHORE_SUBMIT_INFO value to the sType field.
    • pNext

      public VkSemaphoreSubmitInfo pNext(long value)
      Sets the specified value to the pNext field.
    • semaphore

      public VkSemaphoreSubmitInfo semaphore(long value)
      Sets the specified value to the semaphore field.
    • value

      public VkSemaphoreSubmitInfo value(long value)
      Sets the specified value to the value field.
    • stageMask

      public VkSemaphoreSubmitInfo stageMask(long value)
      Sets the specified value to the stageMask field.
    • deviceIndex

      public VkSemaphoreSubmitInfo deviceIndex(int value)
      Sets the specified value to the deviceIndex field.
    • set

      public VkSemaphoreSubmitInfo set(int sType, long pNext, long semaphore, long value, long stageMask, int deviceIndex)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static VkSemaphoreSubmitInfo malloc()
      Returns a new VkSemaphoreSubmitInfo instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static VkSemaphoreSubmitInfo calloc()
      Returns a new VkSemaphoreSubmitInfo instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static VkSemaphoreSubmitInfo create()
      Returns a new VkSemaphoreSubmitInfo instance allocated with BufferUtils.
    • create

      public static VkSemaphoreSubmitInfo create(long address)
      Returns a new VkSemaphoreSubmitInfo instance for the specified memory address.
    • createSafe

      public static @Nullable VkSemaphoreSubmitInfo createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static VkSemaphoreSubmitInfo.Buffer malloc(int capacity)
      Returns a new VkSemaphoreSubmitInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static VkSemaphoreSubmitInfo.Buffer calloc(int capacity)
      Returns a new VkSemaphoreSubmitInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkSemaphoreSubmitInfo.Buffer create(int capacity)
      Returns a new VkSemaphoreSubmitInfo.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkSemaphoreSubmitInfo.Buffer create(long address, int capacity)
      Create a VkSemaphoreSubmitInfo.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable VkSemaphoreSubmitInfo.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static VkSemaphoreSubmitInfo malloc(MemoryStack stack)
      Returns a new VkSemaphoreSubmitInfo instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static VkSemaphoreSubmitInfo calloc(MemoryStack stack)
      Returns a new VkSemaphoreSubmitInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static VkSemaphoreSubmitInfo.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new VkSemaphoreSubmitInfo.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static VkSemaphoreSubmitInfo.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new VkSemaphoreSubmitInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nsType

      public static int nsType(long struct)
      Unsafe version of sType().
    • npNext

      public static long npNext(long struct)
      Unsafe version of pNext().
    • nsemaphore

      public static long nsemaphore(long struct)
      Unsafe version of semaphore().
    • nvalue

      public static long nvalue(long struct)
      Unsafe version of value().
    • nstageMask

      public static long nstageMask(long struct)
      Unsafe version of stageMask().
    • ndeviceIndex

      public static int ndeviceIndex(long struct)
      Unsafe version of deviceIndex().
    • nsType

      public static void nsType(long struct, int value)
      Unsafe version of sType.
    • npNext

      public static void npNext(long struct, long value)
      Unsafe version of pNext.
    • nsemaphore

      public static void nsemaphore(long struct, long value)
      Unsafe version of semaphore.
    • nvalue

      public static void nvalue(long struct, long value)
      Unsafe version of value.
    • nstageMask

      public static void nstageMask(long struct, long value)
      Unsafe version of stageMask.
    • ndeviceIndex

      public static void ndeviceIndex(long struct, int value)
      Unsafe version of deviceIndex.