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

Function DecompressBlockBC4

cmp_core/shaders/bc4_encode_kernel.cpp:274–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274int CMP_CDECL DecompressBlockBC4(const unsigned char cmpBlock[8], CMP_GLOBAL unsigned char srcBlock[16], const void* options = NULL)
275{
276 CMP_BC15Options* BC15options = (CMP_BC15Options*)options;
277 CMP_BC15Options BC15optionsDefault;
278 if (BC15options == NULL)
279 {
280 BC15options = &BC15optionsDefault;
281 SetDefaultBC15Options(BC15options);
282 }
283
284 DecompressBlockBC4_SingleChannel(srcBlock, (CGU_UINT32*)cmpBlock, BC15options);
285 return CGU_CORE_OK;
286}
287
288#endif
289

Callers 4

DecompressMethod · 0.85
core_tests.cppFile · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 2

SetDefaultBC15OptionsFunction · 0.85

Tested by 1

mainFunction · 0.68