Class VulkanSubpassDescription

    • Method Detail

      • resolveAttachments

        public java.util.List<VulkanAttachmentReference> resolveAttachments()
        Specified by:
        resolveAttachments in interface VulkanSubpassDescriptionType
        Returns:
        A list of the the render pass’s attachments that are resolved to at the end of the subpass, and what layout each attachment will be in during the multisample resolve operation.
      • preserveAttachments

        public java.util.List<java.lang.Integer> preserveAttachments()
        Specified by:
        preserveAttachments in interface VulkanSubpassDescriptionType
        Returns:
        A list of render pass attachment indices describing the attachments that are not used by a subpass, but whose contents must be preserved throughout the subpass.
      • withFlags

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

        public final VulkanSubpassDescription withPipelineBindPoint​(VulkanPipelineBindPoint value)
        Copy the current immutable object by setting a value for the pipelineBindPoint attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for pipelineBindPoint
        Returns:
        A modified copy of the this object
      • withInputAttachments

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

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

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

        public final VulkanSubpassDescription withDepthStencilAttachment​(java.util.Optional<? extends VulkanAttachmentReference> optional)
        Copy the current immutable object by setting an optional value for the depthStencilAttachment attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for depthStencilAttachment
        Returns:
        A modified copy of this object
      • withPreserveAttachments

        public final VulkanSubpassDescription withPreserveAttachments​(int... elements)
        Copy the current immutable object with elements that replace the content of preserveAttachments.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withPreserveAttachments

        public final VulkanSubpassDescription withPreserveAttachments​(java.lang.Iterable<java.lang.Integer> elements)
        Copy the current immutable object with elements that replace the content of preserveAttachments. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of preserveAttachments 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 VulkanSubpassDescription 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: flags, pipelineBindPoint, inputAttachments, colorAttachments, resolveAttachments, depthStencilAttachment, preserveAttachments.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

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

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