Class VulkanImageSubresource

    • Method Detail

      • withAspectMask

        public final VulkanImageSubresource withAspectMask​(VulkanImageAspectFlag... elements)
        Copy the current immutable object with elements that replace the content of aspectMask.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withAspectMask

        public final VulkanImageSubresource 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 VulkanImageSubresource 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
      • withArrayLayer

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

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

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

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

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

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