MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ check_validation_layer_support()

bool MayaFlux::Core::VKInstance::check_validation_layer_support ( const std::vector< const char * > &  layers)
private

Check if requested validation layers are available.

Definition at line 121 of file VKInstance.cpp.

122{
123 auto available_layers = vk::enumerateInstanceLayerProperties();
124
125 for (const char* layer_name : layers) {
126 bool layer_found = false;
127
128 for (const auto& layer_properties : available_layers) {
129 if (strcmp(layer_name, layer_properties.layerName) == 0) {
130 layer_found = true;
131 break;
132 }
133 }
134
135 if (!layer_found) {
136 return false;
137 }
138 }
139
140 return true;
141}

Referenced by initialize().

+ Here is the caller graph for this function: