Function inexor::vulkan_renderer::wrapper::is_instance_extension_supported

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 Instance is actually available on the system before calling the constructor!

Parameters:

extension_name – The name of the instance extension.

Throws:
  • InexorException – if extension_name is not an instance extension, but an instance layer.

  • InexorException – if vkEnumerateInstanceExtensionProperties is nullptr.

  • VulkanException – if vkEnumerateInstanceExtensionProperties does not return VK_SUCCESS.

Returns:

true if the instance extension is supported.