| 198 | } |
| 199 | |
| 200 | static CMP_GPUDecode DecodeWith(const char* strParameter) |
| 201 | { |
| 202 | if (strcmp(strParameter, "DirectX") == 0) |
| 203 | return GPUDecode_DIRECTX; |
| 204 | else if (strcmp(strParameter, "DXC") == 0) |
| 205 | return GPUDecode_OPENGL; |
| 206 | else if (strcmp(strParameter, "OpenGL") == 0) |
| 207 | return GPUDecode_OPENGL; |
| 208 | else if (strcmp(strParameter, "OGL") == 0) |
| 209 | return GPUDecode_OPENGL; |
| 210 | else if (strcmp(strParameter, "Vulkan") == 0) |
| 211 | return GPUDecode_VULKAN; |
| 212 | else if (strcmp(strParameter, "VLK") == 0) |
| 213 | return GPUDecode_VULKAN; |
| 214 | else |
| 215 | return GPUDecode_INVALID; |
| 216 | } |
| 217 | |
| 218 | static CMP_Compute_type EncodeWith(const char* strParameter) |
| 219 | { |
no outgoing calls
no test coverage detected