Class VkCommandBufferSubmitInfo

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkCommandBufferSubmitInfo>
org.lwjgl.vulkan.VkCommandBufferSubmitInfo
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer
Direct Known Subclasses:
VkCommandBufferSubmitInfoKHR

public class VkCommandBufferSubmitInfo extends org.lwjgl.system.Struct<VkCommandBufferSubmitInfo> implements org.lwjgl.system.NativeResource
Structure specifying a command buffer submission.
Valid Usage
Valid Usage (Implicit)
See Also

VkSubmitInfo2

Layout


 struct VkCommandBufferSubmitInfo {
     VkStructureType sType();
     void const * pNext();
     VkCommandBuffer commandBuffer();
     uint32_t deviceMask();
 }
  • 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.
    • COMMANDBUFFER

      public static final int COMMANDBUFFER
      The struct member offsets.
    • DEVICEMASK

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

    • VkCommandBufferSubmitInfo

      public VkCommandBufferSubmitInfo(ByteBuffer container)
      Creates a VkCommandBufferSubmitInfo 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()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<VkCommandBufferSubmitInfo>
    • sType

      public int sType()
      a VkStructureType value identifying this structure.
    • pNext

      public long pNext()
      NULL or a pointer to a structure extending this structure.
    • commandBuffer

      public long commandBuffer()
      a VkCommandBuffer to be submitted for execution.
    • deviceMask

      public int deviceMask()
      a bitmask indicating which devices in a device group execute the command buffer. A deviceMask of 0 is equivalent to setting all bits corresponding to valid devices in the group to 1.
    • sType

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

      public VkCommandBufferSubmitInfo sType$Default()
    • pNext

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

      Prepends the specified VkRenderPassStripeSubmitInfoARM value to the pNext chain.
    • commandBuffer

      public VkCommandBufferSubmitInfo commandBuffer(org.lwjgl.vulkan.VkCommandBuffer value)
      Sets the specified value to the commandBuffer() field.
    • deviceMask

      public VkCommandBufferSubmitInfo deviceMask(int value)
      Sets the specified value to the deviceMask() field.
    • set

      public VkCommandBufferSubmitInfo set(int sType, long pNext, org.lwjgl.vulkan.VkCommandBuffer commandBuffer, int deviceMask)
      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 VkCommandBufferSubmitInfo malloc()
      Returns a new VkCommandBufferSubmitInfo instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

      public static VkCommandBufferSubmitInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new VkCommandBufferSubmitInfo.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().
    • ncommandBuffer

      public static long ncommandBuffer(long struct)
      Unsafe version of commandBuffer().
    • ndeviceMask

      public static int ndeviceMask(long struct)
      Unsafe version of deviceMask().
    • 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.
    • ncommandBuffer

      public static void ncommandBuffer(long struct, org.lwjgl.vulkan.VkCommandBuffer value)
      Unsafe version of commandBuffer.
    • ndeviceMask

      public static void ndeviceMask(long struct, int value)
      Unsafe version of deviceMask.
    • validate

      public static void validate(long struct)
      Validates pointer members that should not be NULL.
      Parameters:
      struct - the struct to validate