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

Function clamp

Source/Tools/ImageCompare/ImageCompare.cpp:56–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54
55template<typename T>
56T clamp(T x, T lo, T hi)
57{
58 return std::max(lo, std::min(hi, x));
59}
60
61class Image
62{

Callers 2

saveToFileMethod · 0.70
generateHeatMapFunction · 0.70

Calls 2

maxFunction · 0.50
minFunction · 0.50

Tested by

no test coverage detected