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

Function ParseFormat

examples/common/dds_helpers.cpp:235–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235CMP_FORMAT ParseFormat(const char* pszFormat)
236{
237 if (pszFormat == NULL)
238 return CMP_FORMAT_Unknown;
239
240 for (DWORD i = 0; i < g_dwDDSFormatDescCount; i++)
241 if (stringicmp(pszFormat, g_DDSFormatDesc[i].pszFormatDesc))
242 return g_DDSFormatDesc[i].nFormat;
243
244 return CMP_FORMAT_Unknown;
245}
246
247const char* GetFormatDescription(CMP_FORMAT nFormat)
248{

Callers 2

mainFunction · 0.85
mainFunction · 0.85

Calls 1

stringicmpFunction · 0.85

Tested by

no test coverage detected