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

Function GetEncodeWithDesc

cmp_framework/compute_base.cpp:145–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145const CMP_CHAR* GetEncodeWithDesc(CMP_Compute_type nFormat)
146{
147 switch (nFormat)
148 {
149 case CMP_HPC: // Use CPU High Performance Compute to compress textures, full support
150 return "HPC";
151 break;
152 case CMP_GPU_OCL:
153 return "OCL";
154 break;
155 case CMP_GPU_HW:
156 return "GPU";
157 break;
158 case CMP_GPU_VLK:
159 return "VLK";
160 break;
161 case CMP_GPU_DXC:
162 return "DXC";
163 break;
164 }
165 return "CPU";
166}
167
168#ifdef _WIN32
169bool cmp_recompile_shader(std::string m_sourceShaderFile)

Callers 2

ProcessResultsFunction · 0.85
CMP_CreateComputeLibraryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected