MCPcopy Create free account
hub / github.com/GPUOpen-Tools/compressonator / DecodeWith

Function DecodeWith

applications/_plugins/common/cmdline.cpp:200–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200static 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
218static CMP_Compute_type EncodeWith(const char* strParameter)
219{

Callers 1

ProcessCMDLineOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected