Skip to content

Commit 831244f

Browse files
author
kevyuu
committed
Pass vec by value not ref
1 parent 8daf855 commit 831244f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/nbl/builtin/hlsl/cpp_compat/promote.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace impl
1515
template<typename T, typename U>
1616
struct Promote
1717
{
18-
NBL_CONSTEXPR_FUNC T operator()(NBL_CONST_REF_ARG(U) v)
18+
NBL_CONSTEXPR_FUNC T operator()(const U v)
1919
{
2020
return T(v);
2121
}

0 commit comments

Comments
 (0)