Class VulkanSubmitInfo

  • All Implemented Interfaces:
    VulkanSubmitInfoType

    public final class VulkanSubmitInfo
    extends java.lang.Object
    implements VulkanSubmitInfoType
    The type of Vulkan submission information.
    See Also:
    "VkSubmitInfo"
    • Method Detail

      • waitSemaphores

        public java.util.List<VulkanSemaphoreType> waitSemaphores()
        Specified by:
        waitSemaphores in interface VulkanSubmitInfoType
        Returns:
        A list of semaphores 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.
      • signalSemaphores

        public java.util.List<VulkanSemaphoreType> signalSemaphores()
        Specified by:
        signalSemaphores in interface VulkanSubmitInfoType
        Returns:
        A list of semaphores 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.
      • withWaitSemaphores

        public final VulkanSubmitInfo withWaitSemaphores​(VulkanSemaphoreType... elements)
        Copy the current immutable object with elements that replace the content of waitSemaphores.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withWaitSemaphores

        public final VulkanSubmitInfo withWaitSemaphores​(java.lang.Iterable<? extends VulkanSemaphoreType> elements)
        Copy the current immutable object with elements that replace the content of waitSemaphores. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of waitSemaphores elements to set
        Returns:
        A modified copy of this object
      • withWaitStageMasks

        public final VulkanSubmitInfo withWaitStageMasks​(VulkanPipelineStageFlag... elements)
        Copy the current immutable object with elements that replace the content of waitStageMasks.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withWaitStageMasks

        public final VulkanSubmitInfo withWaitStageMasks​(java.lang.Iterable<? extends VulkanPipelineStageFlag> elements)
        Copy the current immutable object with elements that replace the content of waitStageMasks. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of waitStageMasks elements to set
        Returns:
        A modified copy of this object
      • withCommandBuffers

        public final VulkanSubmitInfo withCommandBuffers​(VulkanCommandBufferType... elements)
        Copy the current immutable object with elements that replace the content of commandBuffers.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withCommandBuffers

        public final VulkanSubmitInfo withCommandBuffers​(java.lang.Iterable<? extends VulkanCommandBufferType> elements)
        Copy the current immutable object with elements that replace the content of commandBuffers. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of commandBuffers elements to set
        Returns:
        A modified copy of this object
      • withSignalSemaphores

        public final VulkanSubmitInfo withSignalSemaphores​(VulkanSemaphoreType... elements)
        Copy the current immutable object with elements that replace the content of signalSemaphores.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withSignalSemaphores

        public final VulkanSubmitInfo withSignalSemaphores​(java.lang.Iterable<? extends VulkanSemaphoreType> elements)
        Copy the current immutable object with elements that replace the content of signalSemaphores. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of signalSemaphores elements to set
        Returns:
        A modified copy of this object
      • equals

        public boolean equals​(java.lang.Object another)
        This instance is equal to all instances of VulkanSubmitInfo that have equal attribute values.
        Overrides:
        equals in class java.lang.Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: waitSemaphores, waitStageMasks, commandBuffers, signalSemaphores.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

        public java.lang.String toString()
        Prints the immutable value VulkanSubmitInfo with attribute values.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of the value
      • of

        public static VulkanSubmitInfo of​(java.util.List<VulkanSemaphoreType> waitSemaphores,
                                          java.util.List<VulkanPipelineStageFlag> waitStageMasks,
                                          java.util.List<VulkanCommandBufferType> commandBuffers,
                                          java.util.List<VulkanSemaphoreType> signalSemaphores)
        Construct a new immutable VulkanSubmitInfo instance.
        Parameters:
        waitSemaphores - The value for the waitSemaphores attribute
        waitStageMasks - The value for the waitStageMasks attribute
        commandBuffers - The value for the commandBuffers attribute
        signalSemaphores - The value for the signalSemaphores attribute
        Returns:
        An immutable VulkanSubmitInfo instance
      • of

        public static VulkanSubmitInfo of​(java.lang.Iterable<? extends VulkanSemaphoreType> waitSemaphores,
                                          java.lang.Iterable<? extends VulkanPipelineStageFlag> waitStageMasks,
                                          java.lang.Iterable<? extends VulkanCommandBufferType> commandBuffers,
                                          java.lang.Iterable<? extends VulkanSemaphoreType> signalSemaphores)
        Construct a new immutable VulkanSubmitInfo instance.
        Parameters:
        waitSemaphores - The value for the waitSemaphores attribute
        waitStageMasks - The value for the waitStageMasks attribute
        commandBuffers - The value for the commandBuffers attribute
        signalSemaphores - The value for the signalSemaphores attribute
        Returns:
        An immutable VulkanSubmitInfo instance
      • copyOf

        public static VulkanSubmitInfo copyOf​(VulkanSubmitInfoType instance)
        Creates an immutable copy of a VulkanSubmitInfoType value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
        Parameters:
        instance - The instance to copy
        Returns:
        A copied immutable VulkanSubmitInfo instance