MCPcopy Create free account
hub / github.com/LunarG/VulkanTools / RunLoaderSurrender

Function RunLoaderSurrender

vkconfig_cmd/main_loader.cpp:134–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134static int RunLoaderSurrender(Configurator& configurator, const CommandLine& command_line) {
135 const bool has_overridden_layers = configurator.HasOverride();
136 const bool surrender_result = configurator.Surrender(OVERRIDE_AREA_ALL);
137
138 if (has_overridden_layers) {
139 if (surrender_result) {
140 printf("vkconfig: Full Vulkan Loader control returned to Vulkan applications.\n");
141 printf(
142 "\n (Run \"vkconfig loader --override (<layers_configuration_file>|<layers_configuration_index>) to control the "
143 "Vulkan Loader)\n");
144 } else {
145 fprintf(stderr, "vkconfig: Failed to surrender Vulkan Layers configuration...\n");
146 }
147 } else {
148 fprintf(stderr, "vkconfig: No active Vulkan Layers configuration, nothing to surrender\n");
149 }
150
151 return surrender_result ? 0 : -1;
152}
153
154static int RunLoaderImport(Configurator& configurator, const CommandLine& command_line) {
155 std::string configuration_name;

Callers 1

run_loaderFunction · 0.85

Calls 2

HasOverrideMethod · 0.80
SurrenderMethod · 0.80

Tested by

no test coverage detected