Module com.io7m.jcoronado.api
Package com.io7m.jcoronado.api
Interface VulkanPhysicalDeviceMemoryPropertiesType
-
- All Known Implementing Classes:
VulkanPhysicalDeviceMemoryProperties
@Immutable public interface VulkanPhysicalDeviceMemoryPropertiesType
The memory properties for a physical device.- See Also:
- "VkPhysicalDeviceMemoryProperties"
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default VulkanMemoryType
findSuitableMemoryType(VulkanMemoryRequirements requirements, java.util.Set<VulkanMemoryPropertyFlag> flags)
Find a suitable memory type for the given requirements and properties.java.util.List<VulkanMemoryHeap>
heaps()
java.util.List<VulkanMemoryType>
types()
-
-
-
Method Detail
-
heaps
@Parameter java.util.List<VulkanMemoryHeap> heaps()
- Returns:
- The memory heaps from which memory can be allocated.
-
types
@Parameter java.util.List<VulkanMemoryType> types()
- Returns:
- The memory types that can be used to access memory allocated from the heaps specified
by
heaps()
-
findSuitableMemoryType
default VulkanMemoryType findSuitableMemoryType(VulkanMemoryRequirements requirements, java.util.Set<VulkanMemoryPropertyFlag> flags) throws VulkanMissingRequiredMemoryTypeException
Find a suitable memory type for the given requirements and properties.- Parameters:
requirements
- The memory requirementsflags
- The memory properties- Returns:
- A memory type
- Throws:
VulkanMissingRequiredMemoryTypeException
- If no suitable memory type exists
-
-