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

Function AddApplicationEnabledParameters

vkconfig_core/configuration.cpp:44–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42#include <algorithm>
43
44static void AddApplicationEnabledParameters(std::vector<Parameter>& parameters, LayerControl default_control) {
45 for (auto paramater : parameters) {
46 if (paramater.builtin != LAYER_BUILTIN_UNORDERED) {
47 continue;
48 }
49
50 return; // No need to add LAYER_BUILTIN_UNORDERED, it's in the list already
51 }
52
53 Parameter applications_enabled_layers;
54 applications_enabled_layers.key = ::GetLabel(LAYER_BUILTIN_UNORDERED);
55 applications_enabled_layers.builtin = LAYER_BUILTIN_UNORDERED;
56 applications_enabled_layers.control = ::MapToUnordered(default_control);
57 applications_enabled_layers.overridden_rank = Parameter::NO_RANK;
58 parameters.push_back(applications_enabled_layers);
59}
60
61Configuration Configuration::Create(const LayerManager& layers, const std::string& configuration_key) {
62 Configuration result;

Callers 1

GatherParametersMethod · 0.85

Calls 2

MapToUnorderedFunction · 0.85
GetLabelFunction · 0.70

Tested by

no test coverage detected