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

Function DecompressBlockBC5S

cmp_core/shaders/bc5_encode_kernel.cpp:388–403  ·  view source on GitHub ↗

prototype code

Source from the content-addressed store, hash-verified

386
387// prototype code
388int CMP_CDECL DecompressBlockBC5S(const CGU_UINT8 cmpBlock[16],
389 CMP_GLOBAL CGU_INT8 srcBlockR[16],
390 CMP_GLOBAL CGU_INT8 srcBlockG[16],
391 const void* options = NULL)
392{
393 CMP_BC15Options* BC15options = (CMP_BC15Options*)options;
394 CMP_BC15Options BC15optionsDefault;
395 if (BC15options == NULL)
396 {
397 BC15options = &BC15optionsDefault;
398 SetDefaultBC15Options(BC15options);
399 }
400 DecompressBC5S_DualChannel_Internal(srcBlockR, srcBlockG, (CGU_UINT32*)cmpBlock, BC15options);
401
402 return CGU_CORE_OK;
403}
404
405#endif
406

Callers 2

mainFunction · 0.85
mainFunction · 0.85

Calls 2

SetDefaultBC15OptionsFunction · 0.85

Tested by 1

mainFunction · 0.68