Skip to content

Commit efcf055

Browse files
author
devsh
committed
stupid mistake in pushed commit
1 parent 1e4e7c8 commit efcf055

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

include/nbl/builtin/hlsl/functional.hlsl

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,22 +79,23 @@ struct reference_wrapper : enable_if_t<
7979
// TODO: partial specializations for T being a special SPIR-V type for image ops, etc.
8080

8181

82-
#else // CPP
83-
84-
85-
#define ALIAS_STD(NAME,OP) template<typename T> struct NAME : std::NAME<T> { \
86-
using type_t = T;
87-
#else
8882
#define ALIAS_STD(NAME,OP) template<typename T> struct NAME { \
8983
using type_t = T; \
9084
\
9185
T operator()(NBL_CONST_REF_ARG(T) lhs, NBL_CONST_REF_ARG(T) rhs) \
9286
{ \
9387
return lhs OP rhs; \
9488
}
95-
#endif
9689

9790

91+
#else // CPP
92+
93+
94+
#define ALIAS_STD(NAME,OP) template<typename T> struct NAME : std::NAME<T> { \
95+
using type_t = T;
96+
97+
#endif
98+
9899
ALIAS_STD(bit_and,&)
99100
using scalar_t = typename scalar_type<T>::type;
100101
using bitfield_t = typename unsigned_integer_of_size<sizeof(scalar_t)>::type;

0 commit comments

Comments
 (0)