Gets a list of layer and instance extensions */
| 636 | |
| 637 | /* Gets a list of layer and instance extensions */ |
| 638 | void AppGetInstanceExtensions() { |
| 639 | /* Scan layers */ |
| 640 | auto global_layer_properties = |
| 641 | GetVector<VkLayerProperties>("vkEnumerateInstanceLayerProperties", vkEnumerateInstanceLayerProperties); |
| 642 | |
| 643 | for (const auto &layer : global_layer_properties) { |
| 644 | global_layers.push_back(LayerExtensionList{layer, AppGetGlobalLayerExtensions(layer.layerName)}); |
| 645 | } |
| 646 | |
| 647 | // Collect global extensions |
| 648 | // Gets instance extensions, if no layer was specified in the first paramteter |
| 649 | global_extensions = AppGetGlobalLayerExtensions(nullptr); |
| 650 | } |
| 651 | void AppCompileInstanceExtensionsToEnable() { |
| 652 | #if defined(VK_USE_PLATFORM_MACOS_MVK) || defined(VK_USE_PLATFORM_IOS_MVK) |
| 653 | bool metal_surface_available = false; |
nothing calls this directly
no outgoing calls
no test coverage detected