Interface VulkanPhysicalDeviceType
- All Superinterfaces:
AutoCloseable,VulkanHandleDispatchableType,VulkanHandleType
- All Known Implementing Classes:
VulkanLWJGLPhysicalDevice
A reference to a physical Vulkan device.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionCreate a new logical device from this physical device.Retrieve the device driver properties.extensions(Optional<String> layer) features()formatProperties(VulkanFormat format) Retrieve the device ID properties.imageFormatProperties(VulkanFormat format, VulkanImageKind type, VulkanImageTiling tiling, Set<VulkanImageUsageFlag> usage, Set<VulkanImageCreateFlag> flags) instance()layers()limits()memory()default Optional<VulkanQueueFamilyProperties> Find the first queue family that has all the given flags.default Optional<VulkanQueueFamilyProperties> Find the first queue family that has all the given flags.Methods inherited from interface com.io7m.jcoronado.api.VulkanHandleType
close, isClosed
-
Method Details
-
instance
VulkanInstanceType instance()- Returns:
- The instance to which the physical device belongs
-
extensions
- Parameters:
layer- The layer that will be inspected for extensions- Returns:
- The available device extensions
- Throws:
VulkanException- On errors
-
layers
- Returns:
- The available layers
- Throws:
VulkanException- On errors
-
properties
- Returns:
- The basic properties of the device
- Throws:
VulkanException- On errors
-
limits
- Returns:
- The limits of the device
- Throws:
VulkanException- On errors
-
features
- Returns:
- The features of the device
- Throws:
VulkanException- On errors
-
formatProperties
- Parameters:
format- The format- Returns:
- The properties of the given format
- Throws:
VulkanException- On errors
-
imageFormatProperties
VulkanImageFormatProperties imageFormatProperties(VulkanFormat format, VulkanImageKind type, VulkanImageTiling tiling, Set<VulkanImageUsageFlag> usage, Set<VulkanImageCreateFlag> flags) throws VulkanException - Parameters:
format- The formattype- The image kindtiling- The image tiling modeusage- The usage flagsflags- The creation flags- Returns:
- The properties of the given image format
- Throws:
VulkanException- On errors
-
memory
- Returns:
- The memory properties of the device
- Throws:
VulkanException- On errors
-
queueFamilies
SortedMap<VulkanQueueFamilyIndex,VulkanQueueFamilyProperties> queueFamilies() throws VulkanException- Returns:
- A read-only list of the available queue families
- Throws:
VulkanException- On errors
-
createLogicalDevice
VulkanLogicalDeviceType createLogicalDevice(VulkanLogicalDeviceCreateInfo info) throws VulkanException Create a new logical device from this physical device.- Parameters:
info- The creation info- Returns:
- A new logical device
- Throws:
VulkanException- On errors
-
driverProperties
Optional<VulkanPhysicalDeviceDriverProperties> driverProperties()Retrieve the device driver properties.- Returns:
- The device driver properties, if available
-
idProperties
Optional<VulkanPhysicalDeviceIDProperties> idProperties()Retrieve the device ID properties.- Returns:
- The device ID properties, if available
-
queueFamilyFindWithFlags
default Optional<VulkanQueueFamilyProperties> queueFamilyFindWithFlags(Set<VulkanQueueFamilyPropertyFlag> flags) throws VulkanException Find the first queue family that has all the given flags.- Parameters:
flags- The flags- Returns:
- The first matching queue family, if any
- Throws:
VulkanException- On errors
-
queueFamilyFindWithFlags
default Optional<VulkanQueueFamilyProperties> queueFamilyFindWithFlags(VulkanQueueFamilyPropertyFlag... flags) throws VulkanException Find the first queue family that has all the given flags.- Parameters:
flags- The flags- Returns:
- The first matching queue family, if any
- Throws:
VulkanException- On errors
-