Class VulkanMemoryType

    • Method Detail

      • heapIndex

        public int heapIndex()
        Specified by:
        heapIndex in interface VulkanMemoryTypeType
        Returns:
        The memory heap to which this memory type corresponds
      • withHeapIndex

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

        public final VulkanMemoryType withFlags​(VulkanMemoryPropertyFlag... elements)
        Copy the current immutable object with elements that replace the content of flags.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withFlags

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

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

        public static VulkanMemoryType of​(int heapIndex,
                                          java.util.Set<VulkanMemoryPropertyFlag> flags)
        Construct a new immutable VulkanMemoryType instance.
        Parameters:
        heapIndex - The value for the heapIndex attribute
        flags - The value for the flags attribute
        Returns:
        An immutable VulkanMemoryType instance
      • of

        public static VulkanMemoryType of​(int heapIndex,
                                          java.lang.Iterable<VulkanMemoryPropertyFlag> flags)
        Construct a new immutable VulkanMemoryType instance.
        Parameters:
        heapIndex - The value for the heapIndex attribute
        flags - The value for the flags attribute
        Returns:
        An immutable VulkanMemoryType instance
      • copyOf

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