| 703 | } |
| 704 | |
| 705 | vk::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 | |
| 722 | void Demo::cleanup() { |
| 723 | initialized = false; |
nothing calls this directly
no outgoing calls
no test coverage detected