Class VulkanSubpassDependency

    • Method Detail

      • srcSubpass

        public int srcSubpass()
        Specified by:
        srcSubpass in interface VulkanSubpassDependencyType
        Returns:
        The subpass index of the first subpass in the dependency, or VK_SUBPASS_EXTERNAL.
      • dstSubpass

        public int dstSubpass()
        Specified by:
        dstSubpass in interface VulkanSubpassDependencyType
        Returns:
        The subpass index of the second subpass in the dependency, or VK_SUBPASS_EXTERNAL.
      • withSrcSubpass

        public final VulkanSubpassDependency withSrcSubpass​(int value)
        Copy the current immutable object by setting a value for the srcSubpass attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for srcSubpass
        Returns:
        A modified copy of the this object
      • withDstSubpass

        public final VulkanSubpassDependency withDstSubpass​(int value)
        Copy the current immutable object by setting a value for the dstSubpass attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for dstSubpass
        Returns:
        A modified copy of the this object
      • withSrcStageMask

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

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

        public final VulkanSubpassDependency withSrcAccessMask​(VulkanAccessFlag... elements)
        Copy the current immutable object with elements that replace the content of srcAccessMask.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withSrcAccessMask

        public final VulkanSubpassDependency withSrcAccessMask​(java.lang.Iterable<VulkanAccessFlag> elements)
        Copy the current immutable object with elements that replace the content of srcAccessMask. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of srcAccessMask elements to set
        Returns:
        A modified copy of this object
      • withDstAccessMask

        public final VulkanSubpassDependency withDstAccessMask​(VulkanAccessFlag... elements)
        Copy the current immutable object with elements that replace the content of dstAccessMask.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withDstAccessMask

        public final VulkanSubpassDependency withDstAccessMask​(java.lang.Iterable<VulkanAccessFlag> elements)
        Copy the current immutable object with elements that replace the content of dstAccessMask. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of dstAccessMask elements to set
        Returns:
        A modified copy of this object
      • withDependencyFlags

        public final VulkanSubpassDependency withDependencyFlags​(VulkanDependencyFlag... elements)
        Copy the current immutable object with elements that replace the content of dependencyFlags.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withDependencyFlags

        public final VulkanSubpassDependency withDependencyFlags​(java.lang.Iterable<VulkanDependencyFlag> elements)
        Copy the current immutable object with elements that replace the content of dependencyFlags. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of dependencyFlags 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 VulkanSubpassDependency 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: srcSubpass, dstSubpass, srcStageMask, dstStageMask, srcAccessMask, dstAccessMask, dependencyFlags.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

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

        public static VulkanSubpassDependency of​(int srcSubpass,
                                                 int dstSubpass,
                                                 java.util.Set<VulkanPipelineStageFlag> srcStageMask,
                                                 java.util.Set<VulkanPipelineStageFlag> dstStageMask,
                                                 java.util.Set<VulkanAccessFlag> srcAccessMask,
                                                 java.util.Set<VulkanAccessFlag> dstAccessMask,
                                                 java.util.Set<VulkanDependencyFlag> dependencyFlags)
        Construct a new immutable VulkanSubpassDependency instance.
        Parameters:
        srcSubpass - The value for the srcSubpass attribute
        dstSubpass - The value for the dstSubpass attribute
        srcStageMask - The value for the srcStageMask attribute
        dstStageMask - The value for the dstStageMask attribute
        srcAccessMask - The value for the srcAccessMask attribute
        dstAccessMask - The value for the dstAccessMask attribute
        dependencyFlags - The value for the dependencyFlags attribute
        Returns:
        An immutable VulkanSubpassDependency instance
      • of

        public static VulkanSubpassDependency of​(int srcSubpass,
                                                 int dstSubpass,
                                                 java.lang.Iterable<VulkanPipelineStageFlag> srcStageMask,
                                                 java.lang.Iterable<VulkanPipelineStageFlag> dstStageMask,
                                                 java.lang.Iterable<VulkanAccessFlag> srcAccessMask,
                                                 java.lang.Iterable<VulkanAccessFlag> dstAccessMask,
                                                 java.lang.Iterable<VulkanDependencyFlag> dependencyFlags)
        Construct a new immutable VulkanSubpassDependency instance.
        Parameters:
        srcSubpass - The value for the srcSubpass attribute
        dstSubpass - The value for the dstSubpass attribute
        srcStageMask - The value for the srcStageMask attribute
        dstStageMask - The value for the dstStageMask attribute
        srcAccessMask - The value for the srcAccessMask attribute
        dstAccessMask - The value for the dstAccessMask attribute
        dependencyFlags - The value for the dependencyFlags attribute
        Returns:
        An immutable VulkanSubpassDependency instance
      • copyOf

        public static VulkanSubpassDependency copyOf​(VulkanSubpassDependencyType instance)
        Creates an immutable copy of a VulkanSubpassDependencyType 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 VulkanSubpassDependency instance