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

Function DecompressBlockBC5

cmp_core/shaders/bc5_encode_kernel.cpp:319–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317}
318
319int CMP_CDECL DecompressBlockBC5(const CGU_UINT8 cmpBlock[16],
320 CMP_GLOBAL CGU_UINT8 srcBlockR[16],
321 CMP_GLOBAL CGU_UINT8 srcBlockG[16],
322 const void* options = NULL)
323{
324 CMP_BC15Options* BC15options = (CMP_BC15Options*)options;
325 CMP_BC15Options BC15optionsDefault;
326 if (BC15options == NULL)
327 {
328 BC15options = &BC15optionsDefault;
329 SetDefaultBC15Options(BC15options);
330 }
331 DecompressBC5_DualChannel_Internal(srcBlockR, srcBlockG, (CGU_UINT32*)cmpBlock, BC15options);
332
333 return CGU_CORE_OK;
334}
335
336// prototype code
337int CMP_CDECL CompressBlockBC5S(const CGU_INT8* srcBlockR,

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