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

Function GetFormat

examples/common/dds_helpers.cpp:119–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117CMP_DWORD g_dwFourCCCount = sizeof(g_FourCCs) / sizeof(g_FourCCs[0]);
118
119CMP_FORMAT GetFormat(CMP_DWORD dwFourCC)
120{
121 for (CMP_DWORD i = 0; i < g_dwFourCCCount; i++)
122 if (g_FourCCs[i].dwFourCC == dwFourCC)
123 return g_FourCCs[i].nFormat;
124
125 return CMP_FORMAT_Unknown;
126}
127
128DWORD GetFourCC(CMP_FORMAT nFormat)
129{

Callers 1

LoadDDSFileFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected