Class VulkanClearValueDepthStencil

    • Method Detail

      • withDepth

        public final VulkanClearValueDepthStencil withDepth​(float value)
        Copy the current immutable object by setting a value for the depth attribute. A value strict bits equality used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for depth
        Returns:
        A modified copy of the this object
      • withStencil

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

        public boolean equals​(java.lang.Object another)
        This instance is equal to all instances of VulkanClearValueDepthStencil 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: depth, stencil.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

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

        public static VulkanClearValueDepthStencil of​(float depth,
                                                      int stencil)
        Construct a new immutable VulkanClearValueDepthStencil instance.
        Parameters:
        depth - The value for the depth attribute
        stencil - The value for the stencil attribute
        Returns:
        An immutable VulkanClearValueDepthStencil instance