mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 13:20:54 +00:00
add lerp macro
This commit is contained in:
@@ -121,6 +121,12 @@ T RDCMAX(const T &a, const T &b)
|
||||
return a > b ? a : b;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
T RDCLERP(const T &a, const T &b, const T &step)
|
||||
{
|
||||
return (1.0f - step) * a + step * b;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
inline T AlignUp4(T x)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user