Function inexor::vulkan_renderer::wrapper::is_instance_extension_supported¶
Defined in File instance.hpp
Function Documentation¶
-
bool inexor::vulkan_renderer::wrapper::is_instance_extension_supported(const std::string &extension_name)¶
Check if a certain instance extension is supported on the system.
Note
If is the responsibility of the programmer to make sure that every instance layer which is passed to the constructor of
Instanceis actually available on the system before calling the constructor!- Parameters:
extension_name – The name of the instance extension.
- Throws:
InexorException – if
extension_nameis not an instance extension, but an instance layer.InexorException – if
vkEnumerateInstanceExtensionPropertiesisnullptr.VulkanException – if
vkEnumerateInstanceExtensionPropertiesdoes not returnVK_SUCCESS.
- Returns:
trueif the instance extension is supported.