MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Tools / check_layers

Method check_layers

cube/cube.cpp:705–720  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

703}
704
705vk::Bool32 Demo::check_layers(const std::vector<const char *> &check_names, const std::vector<vk::LayerProperties> &layers) {
706 for (const auto &name : check_names) {
707 vk::Bool32 found = VK_FALSE;
708 for (const auto &layer : layers) {
709 if (!strcmp(name, layer.layerName)) {
710 found = VK_TRUE;
711 break;
712 }
713 }
714 if (!found) {
715 fprintf(stderr, "Cannot find layer: %s\n", name);
716 return 0;
717 }
718 }
719 return VK_TRUE;
720}
721
722void Demo::cleanup() {
723 initialized = false;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected