Class VulkanImageFormatProperties

    • Method Detail

      • withMaxExtent

        public final VulkanImageFormatProperties withMaxExtent​(VulkanExtent3D value)
        Copy the current immutable object by setting a value for the maxExtent attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for maxExtent
        Returns:
        A modified copy of the this object
      • withMaxMipLevels

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

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

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

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

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

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

        public static VulkanImageFormatProperties of​(VulkanExtent3D maxExtent,
                                                     int maxMipLevels,
                                                     int maxArrayLayers,
                                                     java.util.Set<VulkanSampleCountFlag> sampleCounts,
                                                     long maxResourceSize)
        Construct a new immutable VulkanImageFormatProperties instance.
        Parameters:
        maxExtent - The value for the maxExtent attribute
        maxMipLevels - The value for the maxMipLevels attribute
        maxArrayLayers - The value for the maxArrayLayers attribute
        sampleCounts - The value for the sampleCounts attribute
        maxResourceSize - The value for the maxResourceSize attribute
        Returns:
        An immutable VulkanImageFormatProperties instance
      • of

        public static VulkanImageFormatProperties of​(VulkanExtent3D maxExtent,
                                                     int maxMipLevels,
                                                     int maxArrayLayers,
                                                     java.lang.Iterable<VulkanSampleCountFlag> sampleCounts,
                                                     long maxResourceSize)
        Construct a new immutable VulkanImageFormatProperties instance.
        Parameters:
        maxExtent - The value for the maxExtent attribute
        maxMipLevels - The value for the maxMipLevels attribute
        maxArrayLayers - The value for the maxArrayLayers attribute
        sampleCounts - The value for the sampleCounts attribute
        maxResourceSize - The value for the maxResourceSize attribute
        Returns:
        An immutable VulkanImageFormatProperties instance