Class VulkanPhysicalDeviceMemoryProperties

    • Method Detail

      • withHeaps

        public final VulkanPhysicalDeviceMemoryProperties withHeaps​(java.lang.Iterable<? extends VulkanMemoryHeap> elements)
        Copy the current immutable object with elements that replace the content of heaps. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of heaps elements to set
        Returns:
        A modified copy of this object
      • withTypes

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

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

        public static VulkanPhysicalDeviceMemoryProperties of​(java.util.List<VulkanMemoryHeap> heaps,
                                                              java.util.List<VulkanMemoryType> types)
        Construct a new immutable VulkanPhysicalDeviceMemoryProperties instance.
        Parameters:
        heaps - The value for the heaps attribute
        types - The value for the types attribute
        Returns:
        An immutable VulkanPhysicalDeviceMemoryProperties instance
      • of

        public static VulkanPhysicalDeviceMemoryProperties of​(java.lang.Iterable<? extends VulkanMemoryHeap> heaps,
                                                              java.lang.Iterable<? extends VulkanMemoryType> types)
        Construct a new immutable VulkanPhysicalDeviceMemoryProperties instance.
        Parameters:
        heaps - The value for the heaps attribute
        types - The value for the types attribute
        Returns:
        An immutable VulkanPhysicalDeviceMemoryProperties instance