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

Function DecompressBlockBC4S

cmp_core/shaders/bc4_encode_kernel.cpp:232–243  ·  view source on GitHub ↗

prototype code

Source from the content-addressed store, hash-verified

230
231// prototype code
232int CMP_CDECL DecompressBlockBC4S(const unsigned char cmpBlock[8], CMP_GLOBAL char srcBlock[16], const void* options = NULL)
233{
234 CMP_BC15Options* BC15options = (CMP_BC15Options*)options;
235 CMP_BC15Options BC15optionsDefault;
236 if (BC15options == NULL)
237 {
238 BC15options = &BC15optionsDefault;
239 SetDefaultBC15Options(BC15options);
240 }
241 DecompressBlockBC4S_SingleChannel((CGU_INT8*)srcBlock, (CGU_UINT32*)cmpBlock, BC15options);
242 return CGU_CORE_OK;
243}
244
245int CMP_CDECL CompressBlockBC4(const unsigned char* srcBlock, unsigned int srcStrideInBytes, CMP_GLOBAL unsigned char cmpBlock[8], const void* options = NULL)
246{

Callers 2

mainFunction · 0.85
mainFunction · 0.85

Calls 2

SetDefaultBC15OptionsFunction · 0.85

Tested by 1

mainFunction · 0.68