MCPcopy Create free account
hub / github.com/KhronosGroup/glslang / ProcessConfigFile

Function ProcessConfigFile

StandAlone/StandAlone.cpp:165–174  ·  view source on GitHub ↗

Parse either a .conf file provided by the user or the default from glslang::DefaultTBuiltInResource

Source from the content-addressed store, hash-verified

163// Parse either a .conf file provided by the user or the default from glslang::DefaultTBuiltInResource
164//
165void ProcessConfigFile()
166{
167 if (ConfigFile.size() == 0)
168 *GetResources() = *GetDefaultResources();
169 else {
170 char* configString = ReadFileData(ConfigFile.c_str());
171 DecodeResourceLimits(GetResources(), configString);
172 FreeFileData(configString);
173 }
174}
175
176int ReflectOptions = EShReflectionDefault;
177std::underlying_type_t<TOptions> Options = EOptionNone;

Callers 1

singleMainFunction · 0.85

Calls 7

GetResourcesFunction · 0.85
GetDefaultResourcesFunction · 0.85
ReadFileDataFunction · 0.85
DecodeResourceLimitsFunction · 0.85
FreeFileDataFunction · 0.85
c_strMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected