Class VkSubmitInfo

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, WAITSEMAPHORECOUNT, PWAITSEMAPHORES, PWAITDSTSTAGEMASK, COMMANDBUFFERCOUNT, PCOMMANDBUFFERS, SIGNALSEMAPHORECOUNT, PSIGNALSEMAPHORES

        The struct member offsets.
    • Constructor Detail

      • VkSubmitInfo

        public VkSubmitInfo​(java.nio.ByteBuffer container)
        Creates a VkSubmitInfo 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.
      • waitSemaphoreCount

        public int waitSemaphoreCount()
        the number of semaphores upon which to wait before executing the command buffers for the batch.
      • pWaitSemaphores

        @Nullable
        public java.nio.LongBuffer pWaitSemaphores()
        a pointer to an array of VkSemaphore handles upon which to wait before the command buffers for this batch begin execution. If semaphores to wait on are provided, they define a semaphore wait operation.
      • pWaitDstStageMask

        @Nullable
        public java.nio.IntBuffer pWaitDstStageMask()
        a pointer to an array of pipeline stages at which each corresponding semaphore wait will occur.
      • commandBufferCount

        public int commandBufferCount()
        the number of command buffers to execute in the batch.
      • pCommandBuffers

        @Nullable
        public org.lwjgl.PointerBuffer pCommandBuffers()
        a pointer to an array of VkCommandBuffer handles to execute in the batch.
      • signalSemaphoreCount

        public int signalSemaphoreCount()
        the number of semaphores to be signaled once the commands specified in pCommandBuffers have completed execution.
      • pSignalSemaphores

        @Nullable
        public java.nio.LongBuffer pSignalSemaphores()
        a pointer to an array of VkSemaphore handles which will be signaled when the command buffers for this batch have completed execution. If semaphores to be signaled are provided, they define a semaphore signal operation.
      • sType

        public VkSubmitInfo sType​(int value)
        Sets the specified value to the sType() field.
      • pNext

        public VkSubmitInfo pNext​(long value)
        Sets the specified value to the pNext() field.
      • pWaitSemaphores

        public VkSubmitInfo pWaitSemaphores​(@Nullable
                                            java.nio.LongBuffer value)
        Sets the address of the specified LongBuffer to the pWaitSemaphores() field.
      • pWaitDstStageMask

        public VkSubmitInfo pWaitDstStageMask​(@Nullable
                                              java.nio.IntBuffer value)
        Sets the address of the specified IntBuffer to the pWaitDstStageMask() field.
      • pCommandBuffers

        public VkSubmitInfo pCommandBuffers​(@Nullable
                                            org.lwjgl.PointerBuffer value)
        Sets the address of the specified PointerBuffer to the pCommandBuffers() field.
      • pSignalSemaphores

        public VkSubmitInfo pSignalSemaphores​(@Nullable
                                              java.nio.LongBuffer value)
        Sets the address of the specified LongBuffer to the pSignalSemaphores() field.
      • set

        public VkSubmitInfo set​(int sType,
                                long pNext,
                                int waitSemaphoreCount,
                                @Nullable
                                java.nio.LongBuffer pWaitSemaphores,
                                @Nullable
                                java.nio.IntBuffer pWaitDstStageMask,
                                @Nullable
                                org.lwjgl.PointerBuffer pCommandBuffers,
                                @Nullable
                                java.nio.LongBuffer pSignalSemaphores)
        Initializes this struct with the specified values.
      • set

        public VkSubmitInfo set​(VkSubmitInfo src)
        Copies the specified struct data to this struct.
        Parameters:
        src - the source struct
        Returns:
        this struct
      • malloc

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

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

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

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

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

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

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

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

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

        @Deprecated
        public static VkSubmitInfo mallocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
      • callocStack

        @Deprecated
        public static VkSubmitInfo callocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
      • malloc

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

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

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

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

        public static int nwaitSemaphoreCount​(long struct)
        Unsafe version of waitSemaphoreCount().
      • npWaitSemaphores

        @Nullable
        public static java.nio.LongBuffer npWaitSemaphores​(long struct)
        Unsafe version of pWaitSemaphores.
      • npWaitDstStageMask

        @Nullable
        public static java.nio.IntBuffer npWaitDstStageMask​(long struct)
        Unsafe version of pWaitDstStageMask.
      • ncommandBufferCount

        public static int ncommandBufferCount​(long struct)
        Unsafe version of commandBufferCount().
      • npCommandBuffers

        @Nullable
        public static org.lwjgl.PointerBuffer npCommandBuffers​(long struct)
        Unsafe version of pCommandBuffers.
      • nsignalSemaphoreCount

        public static int nsignalSemaphoreCount​(long struct)
        Unsafe version of signalSemaphoreCount().
      • npSignalSemaphores

        @Nullable
        public static java.nio.LongBuffer npSignalSemaphores​(long struct)
        Unsafe version of pSignalSemaphores.
      • 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.
      • nwaitSemaphoreCount

        public static void nwaitSemaphoreCount​(long struct,
                                               int value)
        Sets the specified value to the waitSemaphoreCount field of the specified struct.
      • npWaitSemaphores

        public static void npWaitSemaphores​(long struct,
                                            @Nullable
                                            java.nio.LongBuffer value)
        Unsafe version of pWaitSemaphores.
      • npWaitDstStageMask

        public static void npWaitDstStageMask​(long struct,
                                              @Nullable
                                              java.nio.IntBuffer value)
        Unsafe version of pWaitDstStageMask.
      • ncommandBufferCount

        public static void ncommandBufferCount​(long struct,
                                               int value)
        Sets the specified value to the commandBufferCount field of the specified struct.
      • npCommandBuffers

        public static void npCommandBuffers​(long struct,
                                            @Nullable
                                            org.lwjgl.PointerBuffer value)
        Unsafe version of pCommandBuffers.
      • nsignalSemaphoreCount

        public static void nsignalSemaphoreCount​(long struct,
                                                 int value)
        Sets the specified value to the signalSemaphoreCount field of the specified struct.
      • npSignalSemaphores

        public static void npSignalSemaphores​(long struct,
                                              @Nullable
                                              java.nio.LongBuffer value)
        Unsafe version of pSignalSemaphores.
      • validate

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