Class VulkanPipelineColorBlendAttachmentState

    • Method Detail

      • enable

        public boolean enable()
        Specified by:
        enable in interface VulkanPipelineColorBlendAttachmentStateType
        Returns:
        true if blending is enabled for the corresponding color attachment. If blending is not enabled, the source fragment’s color for that attachment is passed through unmodified.
      • withEnable

        public final VulkanPipelineColorBlendAttachmentState withEnable​(boolean value)
        Copy the current immutable object by setting a value for the enable attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for enable
        Returns:
        A modified copy of the this object
      • withSrcColorBlendFactor

        public final VulkanPipelineColorBlendAttachmentState withSrcColorBlendFactor​(VulkanBlendFactor value)
        Copy the current immutable object by setting a value for the srcColorBlendFactor attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for srcColorBlendFactor
        Returns:
        A modified copy of the this object
      • withDstColorBlendFactor

        public final VulkanPipelineColorBlendAttachmentState withDstColorBlendFactor​(VulkanBlendFactor value)
        Copy the current immutable object by setting a value for the dstColorBlendFactor attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for dstColorBlendFactor
        Returns:
        A modified copy of the this object
      • withColorBlendOp

        public final VulkanPipelineColorBlendAttachmentState withColorBlendOp​(VulkanBlendOp value)
        Copy the current immutable object by setting a value for the colorBlendOp attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for colorBlendOp
        Returns:
        A modified copy of the this object
      • withSrcAlphaBlendFactor

        public final VulkanPipelineColorBlendAttachmentState withSrcAlphaBlendFactor​(VulkanBlendFactor value)
        Copy the current immutable object by setting a value for the srcAlphaBlendFactor attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for srcAlphaBlendFactor
        Returns:
        A modified copy of the this object
      • withDstAlphaBlendFactor

        public final VulkanPipelineColorBlendAttachmentState withDstAlphaBlendFactor​(VulkanBlendFactor value)
        Copy the current immutable object by setting a value for the dstAlphaBlendFactor attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for dstAlphaBlendFactor
        Returns:
        A modified copy of the this object
      • withAlphaBlendOp

        public final VulkanPipelineColorBlendAttachmentState withAlphaBlendOp​(VulkanBlendOp value)
        Copy the current immutable object by setting a value for the alphaBlendOp attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for alphaBlendOp
        Returns:
        A modified copy of the this object
      • withColorWriteMask

        public final VulkanPipelineColorBlendAttachmentState withColorWriteMask​(java.lang.Iterable<VulkanColorComponentFlag> elements)
        Copy the current immutable object with elements that replace the content of colorWriteMask. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of colorWriteMask 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 VulkanPipelineColorBlendAttachmentState 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: enable, srcColorBlendFactor, dstColorBlendFactor, colorBlendOp, srcAlphaBlendFactor, dstAlphaBlendFactor, alphaBlendOp, colorWriteMask.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

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

        public static VulkanPipelineColorBlendAttachmentState of​(boolean enable,
                                                                 VulkanBlendFactor srcColorBlendFactor,
                                                                 VulkanBlendFactor dstColorBlendFactor,
                                                                 VulkanBlendOp colorBlendOp,
                                                                 VulkanBlendFactor srcAlphaBlendFactor,
                                                                 VulkanBlendFactor dstAlphaBlendFactor,
                                                                 VulkanBlendOp alphaBlendOp,
                                                                 java.util.Set<VulkanColorComponentFlag> colorWriteMask)
        Construct a new immutable VulkanPipelineColorBlendAttachmentState instance.
        Parameters:
        enable - The value for the enable attribute
        srcColorBlendFactor - The value for the srcColorBlendFactor attribute
        dstColorBlendFactor - The value for the dstColorBlendFactor attribute
        colorBlendOp - The value for the colorBlendOp attribute
        srcAlphaBlendFactor - The value for the srcAlphaBlendFactor attribute
        dstAlphaBlendFactor - The value for the dstAlphaBlendFactor attribute
        alphaBlendOp - The value for the alphaBlendOp attribute
        colorWriteMask - The value for the colorWriteMask attribute
        Returns:
        An immutable VulkanPipelineColorBlendAttachmentState instance
      • of

        public static VulkanPipelineColorBlendAttachmentState of​(boolean enable,
                                                                 VulkanBlendFactor srcColorBlendFactor,
                                                                 VulkanBlendFactor dstColorBlendFactor,
                                                                 VulkanBlendOp colorBlendOp,
                                                                 VulkanBlendFactor srcAlphaBlendFactor,
                                                                 VulkanBlendFactor dstAlphaBlendFactor,
                                                                 VulkanBlendOp alphaBlendOp,
                                                                 java.lang.Iterable<VulkanColorComponentFlag> colorWriteMask)
        Construct a new immutable VulkanPipelineColorBlendAttachmentState instance.
        Parameters:
        enable - The value for the enable attribute
        srcColorBlendFactor - The value for the srcColorBlendFactor attribute
        dstColorBlendFactor - The value for the dstColorBlendFactor attribute
        colorBlendOp - The value for the colorBlendOp attribute
        srcAlphaBlendFactor - The value for the srcAlphaBlendFactor attribute
        dstAlphaBlendFactor - The value for the dstAlphaBlendFactor attribute
        alphaBlendOp - The value for the alphaBlendOp attribute
        colorWriteMask - The value for the colorWriteMask attribute
        Returns:
        An immutable VulkanPipelineColorBlendAttachmentState instance