Class VulkanImageSubresourceLayers

    • Method Detail

      • withAspectMask

        public final VulkanImageSubresourceLayers 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
      • withMipLevel

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

        public final VulkanImageSubresourceLayers 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 VulkanImageSubresourceLayers 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 VulkanImageSubresourceLayers 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, mipLevel, baseArrayLayer, layerCount.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

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

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

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