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

Function stringToPresetLevel

Common_3/Graphics/GraphicsConfig.cpp:538–566  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

536}
537
538GPUPresetLevel stringToPresetLevel(const char* presetLevel)
539{
540 if (!stricmp(presetLevel, "office"))
541 {
542 return GPU_PRESET_OFFICE;
543 }
544 if (!stricmp(presetLevel, "verylow"))
545 {
546 return GPU_PRESET_VERYLOW;
547 }
548 if (!stricmp(presetLevel, "low"))
549 {
550 return GPU_PRESET_LOW;
551 }
552 if (!stricmp(presetLevel, "medium"))
553 {
554 return GPU_PRESET_MEDIUM;
555 }
556 if (!stricmp(presetLevel, "high"))
557 {
558 return GPU_PRESET_HIGH;
559 }
560 if (!stricmp(presetLevel, "ultra"))
561 {
562 return GPU_PRESET_ULTRA;
563 }
564
565 return GPU_PRESET_NONE;
566}
567
568static GPUTarget stringToTarget(const char* presetLevel)
569{

Callers 4

GraphicsConfig.cppFile · 0.85
parseGPUModelLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected