MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / FixRange

Function FixRange

Source/Falcor/Scene/Volume/BC4Encode.h:57–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 -------------------------------------------------------------------------- */
56
57static void FixRange(int& min, int& max, int steps)
58{
59 if (max - min < steps)
60 max = std::min(min + steps, 255);
61 if (max - min < steps)
62 min = std::max(0, max - steps);
63}
64
65static int FitCodes(uint8_t const* tile, uint8_t const* codes, uint8_t* indices)
66{

Callers 1

CompressAlphaDxt5Function · 0.85

Calls 2

minFunction · 0.50
maxFunction · 0.50

Tested by

no test coverage detected