Function inexor::vulkan_renderer::wrapper::is_instance_layer_supported

Function Documentation

bool inexor::vulkan_renderer::wrapper::is_instance_layer_supported(const std::string &layer_name)

Check if a certain instance layer is available 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:

layer_name – The name of the instance layer.

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

  • InexorException – if vkEnumerateInstanceLayerProperties is nullptr.

  • VulkanException – if vkEnumerateInstanceLayerProperties does not return VK_SUCCESS.

Returns:

true if the instance layer is supported.