Skip to content

Commit c8ead16

Browse files
committed
Add 'inout' to bitwise_max as well
1 parent 94fe1f4 commit c8ead16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/nbl/builtin/hlsl/binops.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ struct bitwise_min
6868
template<typename T, class Comparator>
6969
struct bitwise_max
7070
{
71-
T operator()(const T lhs, const T rhs, in Comparator comp)
71+
T operator()(const T lhs, const T rhs, inout Comparator comp)
7272
{
7373
return comp(lhs, rhs) ? lhs : rhs;
7474
}

0 commit comments

Comments
 (0)