MayaFlux 1.0.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 136 of file VKInstance.cpp.

137{
138 auto available_layers = vk::enumerateInstanceLayerProperties();
139
140 for (const char* layer_name : layers) {
141 bool layer_found = false;
142
143 for (const auto& layer_properties : available_layers) {
144 if (strcmp(layer_name, layer_properties.layerName) == 0) {
145 layer_found = true;
146 break;
147 }
148 }
149
150 if (!layer_found) {
151 return false;
152 }
153 }
154
155 return true;
156}

Referenced by initialize().

+ Here is the caller graph for this function: