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

Method AppGetInstanceExtensions

vulkaninfo/vulkaninfo.h:638–650  ·  view source on GitHub ↗

Gets a list of layer and instance extensions */

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected