Class VulkanPhysicalDeviceMemoryProperties
java.lang.Object
com.io7m.jcoronado.api.VulkanPhysicalDeviceMemoryProperties
- All Implemented Interfaces:
VulkanPhysicalDeviceMemoryPropertiesType
public final class VulkanPhysicalDeviceMemoryProperties
extends Object
implements VulkanPhysicalDeviceMemoryPropertiesType
The memory properties for a physical device.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanPhysicalDeviceMemoryProperties. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forVulkanPhysicalDeviceMemoryProperties.Creates an immutable copy of aVulkanPhysicalDeviceMemoryPropertiesTypevalue.booleanThis instance is equal to all instances ofVulkanPhysicalDeviceMemoryPropertiesthat have equal attribute values.inthashCode()Computes a hash code from attributes:heaps,types.heaps()toString()Prints the immutable valueVulkanPhysicalDeviceMemoryPropertieswith attribute values.types()Copy the current immutable object by setting a value for theheapsattribute.Copy the current immutable object by setting a value for thetypesattribute.Methods inherited from interface VulkanPhysicalDeviceMemoryPropertiesType
checkPreconditions, findSuitableMemoryType
-
Method Details
-
heaps
- Specified by:
heapsin interfaceVulkanPhysicalDeviceMemoryPropertiesType- Returns:
- The memory heaps from which memory can be allocated.
-
types
- Specified by:
typesin interfaceVulkanPhysicalDeviceMemoryPropertiesType- Returns:
- The memory types that can be used to access memory allocated from
the heaps specified by
heaps()
-
withHeaps
public final VulkanPhysicalDeviceMemoryProperties withHeaps(SortedMap<VulkanMemoryHeapIndex, VulkanMemoryHeap> value) Copy the current immutable object by setting a value for theheapsattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for heaps- Returns:
- A modified copy or the
thisobject
-
withTypes
public final VulkanPhysicalDeviceMemoryProperties withTypes(SortedMap<VulkanMemoryTypeIndex, VulkanMemoryType> value) Copy the current immutable object by setting a value for thetypesattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for types- Returns:
- A modified copy or the
thisobject
-
equals
-
hashCode
-
toString
-
copyOf
public static VulkanPhysicalDeviceMemoryProperties copyOf(VulkanPhysicalDeviceMemoryPropertiesType instance) Creates an immutable copy of aVulkanPhysicalDeviceMemoryPropertiesTypevalue. 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 VulkanPhysicalDeviceMemoryProperties instance
-
builder
Creates a builder forVulkanPhysicalDeviceMemoryProperties.VulkanPhysicalDeviceMemoryProperties.builder() .setHeaps(SortedMap<com.io7m.jcoronado.api.VulkanMemoryHeapIndex, VulkanMemoryHeap>) // required
heaps.setTypes(SortedMap<com.io7m.jcoronado.api.VulkanMemoryTypeIndex, VulkanMemoryType>) // requiredtypes.build();- Returns:
- A new VulkanPhysicalDeviceMemoryProperties builder
-