MCPcopy Create free account
hub / github.com/defold/defold / unpack_bc5

Function unpack_bc5

engine/dlib/src/basis/encoder/basisu_gpu_texture.cpp:370–374  ·  view source on GitHub ↗

writes RG

Source from the content-addressed store, hash-verified

368
369 // writes RG
370 void unpack_bc5(const void *pBlock_bits, color_rgba *pPixels)
371 {
372 unpack_bc4(pBlock_bits, &pPixels[0].r, sizeof(color_rgba));
373 unpack_bc4((const uint8_t *)pBlock_bits + sizeof(bc4_block), &pPixels[0].g, sizeof(color_rgba));
374 }
375
376 // ATC isn't officially documented, so I'm assuming these references:
377 // http://www.guildsoftware.com/papers/2012.Converting.DXTC.to.ATC.pdf

Callers 1

unpack_blockFunction · 0.85

Calls 1

unpack_bc4Function · 0.85

Tested by

no test coverage detected