MayaFlux 0.2.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 127 of file VKInstance.cpp.

128{
129 auto available_layers = vk::enumerateInstanceLayerProperties();
130
131 for (const char* layer_name : layers) {
132 bool layer_found = false;
133
134 for (const auto& layer_properties : available_layers) {
135 if (strcmp(layer_name, layer_properties.layerName) == 0) {
136 layer_found = true;
137 break;
138 }
139 }
140
141 if (!layer_found) {
142 return false;
143 }
144 }
145
146 return true;
147}

Referenced by initialize().

+ Here is the caller graph for this function: