Class VulkanFormatProperties

    • Method Detail

      • withLinearTilingFeatures

        public final VulkanFormatProperties withLinearTilingFeatures​(java.lang.Iterable<VulkanFormatFeatureFlag> elements)
        Copy the current immutable object with elements that replace the content of linearTilingFeatures. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of linearTilingFeatures elements to set
        Returns:
        A modified copy of this object
      • withOptimalTilingFeatures

        public final VulkanFormatProperties withOptimalTilingFeatures​(java.lang.Iterable<VulkanFormatFeatureFlag> elements)
        Copy the current immutable object with elements that replace the content of optimalTilingFeatures. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of optimalTilingFeatures elements to set
        Returns:
        A modified copy of this object
      • withBufferFeatures

        public final VulkanFormatProperties withBufferFeatures​(java.lang.Iterable<VulkanFormatFeatureFlag> elements)
        Copy the current immutable object with elements that replace the content of bufferFeatures. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of bufferFeatures 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 VulkanFormatProperties 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: linearTilingFeatures, optimalTilingFeatures, bufferFeatures.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

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

        public static VulkanFormatProperties of​(java.util.Set<VulkanFormatFeatureFlag> linearTilingFeatures,
                                                java.util.Set<VulkanFormatFeatureFlag> optimalTilingFeatures,
                                                java.util.Set<VulkanFormatFeatureFlag> bufferFeatures)
        Construct a new immutable VulkanFormatProperties instance.
        Parameters:
        linearTilingFeatures - The value for the linearTilingFeatures attribute
        optimalTilingFeatures - The value for the optimalTilingFeatures attribute
        bufferFeatures - The value for the bufferFeatures attribute
        Returns:
        An immutable VulkanFormatProperties instance
      • of

        public static VulkanFormatProperties of​(java.lang.Iterable<VulkanFormatFeatureFlag> linearTilingFeatures,
                                                java.lang.Iterable<VulkanFormatFeatureFlag> optimalTilingFeatures,
                                                java.lang.Iterable<VulkanFormatFeatureFlag> bufferFeatures)
        Construct a new immutable VulkanFormatProperties instance.
        Parameters:
        linearTilingFeatures - The value for the linearTilingFeatures attribute
        optimalTilingFeatures - The value for the optimalTilingFeatures attribute
        bufferFeatures - The value for the bufferFeatures attribute
        Returns:
        An immutable VulkanFormatProperties instance
      • copyOf

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