Skip to content

Commit 911d8fc

Browse files
committed
use templated glm methods
1 parent a517d22 commit 911d8fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/nbl/builtin/hlsl/tgmath.hlsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ inline T floor(NBL_CONST_REF_ARG(T) val)
9090
#ifdef __HLSL_VERSION
9191
return spirv::floor<T>(val);
9292
#else
93-
return glm::floor(val);
93+
return glm::floor<T>(val);
9494
#endif
9595

9696
}
@@ -181,7 +181,7 @@ inline T abs(NBL_CONST_REF_ARG(T) val)
181181
#ifdef __HLSL_VERSION
182182
return abs(val);
183183
#else
184-
return std::abs(val);
184+
return glm::abs<T>(val);
185185
#endif
186186
}
187187

0 commit comments

Comments
 (0)