Class VulkanImageSubresourceRange

    • Method Detail

      • withAspectMask

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

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

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

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

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

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

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

        public static VulkanImageSubresourceRange of​(java.util.Set<VulkanImageAspectFlag> aspectMask,
                                                     int baseMipLevel,
                                                     int levelCount,
                                                     int baseArrayLayer,
                                                     int layerCount)
        Construct a new immutable VulkanImageSubresourceRange instance.
        Parameters:
        aspectMask - The value for the aspectMask attribute
        baseMipLevel - The value for the baseMipLevel attribute
        levelCount - The value for the levelCount attribute
        baseArrayLayer - The value for the baseArrayLayer attribute
        layerCount - The value for the layerCount attribute
        Returns:
        An immutable VulkanImageSubresourceRange instance
      • of

        public static VulkanImageSubresourceRange of​(java.lang.Iterable<VulkanImageAspectFlag> aspectMask,
                                                     int baseMipLevel,
                                                     int levelCount,
                                                     int baseArrayLayer,
                                                     int layerCount)
        Construct a new immutable VulkanImageSubresourceRange instance.
        Parameters:
        aspectMask - The value for the aspectMask attribute
        baseMipLevel - The value for the baseMipLevel attribute
        levelCount - The value for the levelCount attribute
        baseArrayLayer - The value for the baseArrayLayer attribute
        layerCount - The value for the layerCount attribute
        Returns:
        An immutable VulkanImageSubresourceRange instance