Class VkCommandBufferSubmitInfo

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer
    Direct Known Subclasses:
    VkCommandBufferSubmitInfoKHR

    public class VkCommandBufferSubmitInfo
    extends org.lwjgl.system.Struct
    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 Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, COMMANDBUFFER, DEVICEMASK

        The struct member offsets.
    • Constructor Detail

      • VkCommandBufferSubmitInfo

        public VkCommandBufferSubmitInfo​(java.nio.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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • sType

        public int sType()
        the type of 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.
      • set

        public VkCommandBufferSubmitInfo set​(int sType,
                                             long pNext,
                                             org.lwjgl.vulkan.VkCommandBuffer commandBuffer,
                                             int deviceMask)
        Initializes this struct with the specified values.
      • 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.
      • 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
      • 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:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • 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