Interface VulkanInstanceType
- All Superinterfaces:
AutoCloseable, VulkanHandleDispatchableType, VulkanHandleType
- All Known Implementing Classes:
VulkanLWJGLInstance
An initialized instance.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionFind the maximum API version supported.Return the API version that this instance will support.voidclose()Destroy the object.default <T extends VulkanExtensionType>
Optional<T> findEnabledExtension(String name, Class<T> clazz) Find and cast an extension with a given name to the correct API type.default List<VulkanPhysicalDeviceType> Methods inherited from interface VulkanHandleType
isClosed
-
Method Details
-
close
Description copied from interface:VulkanHandleTypeDestroy the object.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceVulkanHandleType- Throws:
VulkanException- On errors
-
enumeratePhysicalDevices
- Returns:
- The available physical devices
- Throws:
VulkanException- On errors
-
physicalDevices
- Returns:
- The available physical devices
- Throws:
VulkanException- On errors
-
apiVersionMaximumSupported
VulkanVersion apiVersionMaximumSupported()Find the maximum API version supported. This is essentially the same asVulkanInstanceProviderType.findSupportedInstanceVersion(), and does not indicate that this particular instance will allow function calls that require that version.- Returns:
- The maximum API version supported
- See Also:
-
apiVersionUsed
VulkanVersion apiVersionUsed()Return the API version that this instance will support. This is the version that the user actually requested, and therefore defines the upper bound for the Vulkan API version that can be used with this instance.- Returns:
- The API version that this instance is configured to use
-
enabledExtensions
- Returns:
- The enabled extensions for the instance
- Throws:
VulkanException- On errors
-
findEnabledExtension
default <T extends VulkanExtensionType> Optional<T> findEnabledExtension(String name, Class<T> clazz) throws VulkanException Find and cast an extension with a given name to the correct API type.- Type Parameters:
T- The precise type- Parameters:
name- The extension nameclazz- The intended extension type- Returns:
- The extension with the correct type, or nothing if the extension either did not exist or did not have the right type
- Throws:
VulkanException- On errors
-