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

Function EncodeWith

applications/_plugins/common/cmdline.cpp:218–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218static CMP_Compute_type EncodeWith(const char* strParameter)
219{
220 if (strcmp(strParameter, "CPU") == 0)
221 return CMP_CPU;
222 else if (strcmp(strParameter, "HPC") == 0)
223 return CMP_HPC;
224 else if (strcmp(strParameter, "GPU") == 0)
225 return CMP_GPU_HW;
226 else if (strcmp(strParameter, "OCL") == 0)
227 return CMP_GPU_OCL;
228 else if (strcmp(strParameter, "DXC") == 0)
229 return CMP_GPU_DXC;
230 else if (strcmp(strParameter, "VLK") == 0)
231 return CMP_GPU_VLK;
232 else
233 return CMP_UNKNOWN;
234}
235
236static bool ProcessSingleFlags(const char* strCommand)
237{

Callers 1

ProcessCMDLineOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected