Class VulkanAttachmentDescription

    • Method Detail

      • finalLayout

        public VulkanImageLayout finalLayout()
        Specified by:
        finalLayout in interface VulkanAttachmentDescriptionType
        Returns:
        The layout the attachment image subresource will be transitioned to when a render pass instance ends. During a render pass instance, an attachment can use a different layout in each subpass, if desired.
      • withFlags

        public final VulkanAttachmentDescription withFlags​(java.lang.Iterable<VulkanAttachmentDescriptionFlag> 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
      • withFormat

        public final VulkanAttachmentDescription withFormat​(VulkanFormat value)
        Copy the current immutable object by setting a value for the format attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for format
        Returns:
        A modified copy of the this object
      • withSamples

        public final VulkanAttachmentDescription withSamples​(VulkanSampleCountFlag value)
        Copy the current immutable object by setting a value for the samples attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for samples
        Returns:
        A modified copy of the this object
      • withLoadOp

        public final VulkanAttachmentDescription withLoadOp​(VulkanAttachmentLoadOp value)
        Copy the current immutable object by setting a value for the loadOp attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for loadOp
        Returns:
        A modified copy of the this object
      • withStoreOp

        public final VulkanAttachmentDescription withStoreOp​(VulkanAttachmentStoreOp value)
        Copy the current immutable object by setting a value for the storeOp attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for storeOp
        Returns:
        A modified copy of the this object
      • withStencilLoadOp

        public final VulkanAttachmentDescription withStencilLoadOp​(VulkanAttachmentLoadOp value)
        Copy the current immutable object by setting a value for the stencilLoadOp attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for stencilLoadOp
        Returns:
        A modified copy of the this object
      • withStencilStoreOp

        public final VulkanAttachmentDescription withStencilStoreOp​(VulkanAttachmentStoreOp value)
        Copy the current immutable object by setting a value for the stencilStoreOp attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for stencilStoreOp
        Returns:
        A modified copy of the this object
      • withInitialLayout

        public final VulkanAttachmentDescription withInitialLayout​(VulkanImageLayout value)
        Copy the current immutable object by setting a value for the initialLayout attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for initialLayout
        Returns:
        A modified copy of the this object
      • withFinalLayout

        public final VulkanAttachmentDescription withFinalLayout​(VulkanImageLayout value)
        Copy the current immutable object by setting a value for the finalLayout attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for finalLayout
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(java.lang.Object another)
        This instance is equal to all instances of VulkanAttachmentDescription 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, format, samples, loadOp, storeOp, stencilLoadOp, stencilStoreOp, initialLayout, finalLayout.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

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