Class VulkanStencilOpState

    • Method Detail

      • compareMask

        public int compareMask()
        Specified by:
        compareMask in interface VulkanStencilOpStateType
        Returns:
        The bits of the unsigned integer stencil values participating in the stencil test.
      • writeMask

        public int writeMask()
        Specified by:
        writeMask in interface VulkanStencilOpStateType
        Returns:
        The bits of the unsigned integer stencil values updated by the stencil test in the stencil framebuffer attachment.
      • reference

        public int reference()
        Specified by:
        reference in interface VulkanStencilOpStateType
        Returns:
        An integer reference value that is used in the unsigned stencil comparison.
      • withFailOp

        public final VulkanStencilOpState withFailOp​(VulkanStencilOp value)
        Copy the current immutable object by setting a value for the failOp attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for failOp
        Returns:
        A modified copy of the this object
      • withPassOp

        public final VulkanStencilOpState withPassOp​(VulkanStencilOp value)
        Copy the current immutable object by setting a value for the passOp attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for passOp
        Returns:
        A modified copy of the this object
      • withDepthFailOp

        public final VulkanStencilOpState withDepthFailOp​(VulkanStencilOp value)
        Copy the current immutable object by setting a value for the depthFailOp attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for depthFailOp
        Returns:
        A modified copy of the this object
      • withCompareOp

        public final VulkanStencilOpState withCompareOp​(VulkanCompareOp value)
        Copy the current immutable object by setting a value for the compareOp attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for compareOp
        Returns:
        A modified copy of the this object
      • withCompareMask

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

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

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

        public boolean equals​(java.lang.Object another)
        This instance is equal to all instances of VulkanStencilOpState 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: failOp, passOp, depthFailOp, compareOp, compareMask, writeMask, reference.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

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

        public static VulkanStencilOpState of​(VulkanStencilOp failOp,
                                              VulkanStencilOp passOp,
                                              VulkanStencilOp depthFailOp,
                                              VulkanCompareOp compareOp,
                                              int compareMask,
                                              int writeMask,
                                              int reference)
        Construct a new immutable VulkanStencilOpState instance.
        Parameters:
        failOp - The value for the failOp attribute
        passOp - The value for the passOp attribute
        depthFailOp - The value for the depthFailOp attribute
        compareOp - The value for the compareOp attribute
        compareMask - The value for the compareMask attribute
        writeMask - The value for the writeMask attribute
        reference - The value for the reference attribute
        Returns:
        An immutable VulkanStencilOpState instance
      • copyOf

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