Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
55
template<typename T>
56
T clamp(T x, T lo, T hi)
57
{
58
return std::max(lo, std::min(hi, x));
59
}
60
61
class Image
62
{
Callers
2
saveToFile
Method · 0.70
generateHeatMap
Function · 0.70
Calls
2
max
Function · 0.50
min
Function · 0.50
Tested by
no test coverage detected