MayaFlux 0.3.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 134 of file VKInstance.cpp.

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

Referenced by initialize().

+ Here is the caller graph for this function: