Class VulkanSurfaceFormatKHR

    • Method Detail

      • withFormat

        public final VulkanSurfaceFormatKHR 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
      • withColorSpace

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

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

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

        public static VulkanSurfaceFormatKHR of​(VulkanFormat format,
                                                VulkanColorSpaceKHR colorSpace)
        Construct a new immutable VulkanSurfaceFormatKHR instance.
        Parameters:
        format - The value for the format attribute
        colorSpace - The value for the colorSpace attribute
        Returns:
        An immutable VulkanSurfaceFormatKHR instance
      • copyOf

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