MCPcopy Create free account
hub / github.com/ConfettiFX/The-Forge / presetLevelToString

Function presetLevelToString

Common_3/Graphics/GraphicsConfig.cpp:515–536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513/************************************************************************/
514
515const char* presetLevelToString(GPUPresetLevel preset)
516{
517 switch (preset)
518 {
519 case GPU_PRESET_NONE:
520 return "";
521 case GPU_PRESET_OFFICE:
522 return "office";
523 case GPU_PRESET_VERYLOW:
524 return "verylow";
525 case GPU_PRESET_LOW:
526 return "low";
527 case GPU_PRESET_MEDIUM:
528 return "medium";
529 case GPU_PRESET_HIGH:
530 return "high";
531 case GPU_PRESET_ULTRA:
532 return "ultra";
533 default:
534 return "null";
535 }
536}
537
538GPUPresetLevel stringToPresetLevel(const char* presetLevel)
539{

Callers 6

parseGPUDataFileFunction · 0.85
getGPUPresetLevelFunction · 0.85
SelectBestGpuFunction · 0.85
initRendererContextFunction · 0.85
SelectBestGpuFunction · 0.85
initRendererContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected