Skip to content

Commit fb2f7c6

Browse files
author
devsh
committed
forgot to amend the commit
1 parent 492a0ad commit fb2f7c6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

include/nbl/builtin/hlsl/concepts.hlsl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
#define NBL_CONCEPT_ASSIGN(NAME, ...) concept NAME = __VA_ARGS__;
2020
#define NBL_REQUIRES(...) requires __VA_ARGS__
2121

22+
23+
// to define a concept using `concept Name = SomeContexprBoolCondition<T>;`
24+
#define NBL_BOOL_CONCEPT concept
25+
2226
// for struct definitions, use instead of closing `>` on the primary template parameter list
2327
#define NBL_PRIMARY_REQUIRES(...) > requires (__VA_ARGS__)
2428

@@ -102,6 +106,9 @@ concept matricial = is_matrix<T>::value;
102106
#define NBL_REQUIRES(...)
103107

104108

109+
// to define a concept using `concept Name = SomeContexprBoolCondition<T>;`
110+
#define NBL_BOOL_CONCEPT NBL_CONSTEXPR_STATIC_INLINE bool
111+
105112
// for struct definitions, use instead of closing `>` on the primary template parameter list
106113
#define NBL_PRIMARY_REQUIRES(...) ,typename __requires=::nbl::hlsl::enable_if_t<(__VA_ARGS__),void> >
107114

0 commit comments

Comments
 (0)