| 536 | } |
| 537 | |
| 538 | GPUPresetLevel 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 | |
| 568 | static GPUTarget stringToTarget(const char* presetLevel) |
| 569 | { |
no outgoing calls
no test coverage detected