Skip to content

Commit c23211a

Browse files
committed
minor fixes
1 parent b627f96 commit c23211a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

include/nbl/builtin/hlsl/algorithm.hlsl

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ NBL_CONSTEXPR_INLINE_FUNC void swap(NBL_REF_ARG(T) lhs, NBL_REF_ARG(T) rhs)
8888
}
8989

9090

91-
#ifdef __HLSL_VERSION
92-
9391
namespace impl
9492
{
9593

@@ -231,20 +229,19 @@ template<int end>
231229
struct unrolled_for_range<end,end>
232230
{
233231
template<typename F>
234-
static void __call(inout F f) {}
232+
static void __call(NBL_REF_ARG(F) f) {}
235233
};
236234
template<int begin, int end>
237235
struct unrolled_for_range
238236
{
239237
template<typename F>
240-
static void __call(inout F f)
238+
static void __call(NBL_REF_ARG(F) f)
241239
{
242240
f.template __call<begin>();
243241
unrolled_for_range<begin+1,end>::template __call<F>(f);
244242
}
245243
};
246244

247-
#endif
248245
}
249246
}
250247

0 commit comments

Comments
 (0)