Function inexor::vulkan_renderer::wrapper::is_instance_layer_supported¶
Defined in File instance.hpp
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
Instanceis actually available on the system before calling the constructor!- Parameters:
layer_name – The name of the instance layer.
- Throws:
InexorException – if
layer_nameis not an instance layer, but an instance extension.InexorException – if vkEnumerateInstanceLayerProperties is
nullptr.VulkanException – if
vkEnumerateInstanceLayerPropertiesdoes not returnVK_SUCCESS.
- Returns:
trueif the instance layer is supported.