File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 19
19
#define NBL_CONCEPT_ASSIGN (NAME, ...) concept NAME = __VA_ARGS__;
20
20
#define NBL_REQUIRES (...) requires __VA_ARGS__
21
21
22
+
23
+ // to define a concept using `concept Name = SomeContexprBoolCondition<T>;`
24
+ #define NBL_BOOL_CONCEPT concept
25
+
22
26
// for struct definitions, use instead of closing `>` on the primary template parameter list
23
27
#define NBL_PRIMARY_REQUIRES (...) > requires (__VA_ARGS__)
24
28
@@ -102,6 +106,9 @@ concept matricial = is_matrix<T>::value;
102
106
#define NBL_REQUIRES (...)
103
107
104
108
109
+ // to define a concept using `concept Name = SomeContexprBoolCondition<T>;`
110
+ #define NBL_BOOL_CONCEPT NBL_CONSTEXPR_STATIC_INLINE bool
111
+
105
112
// for struct definitions, use instead of closing `>` on the primary template parameter list
106
113
#define NBL_PRIMARY_REQUIRES (...) ,typename __requires=::nbl::hlsl::enable_if_t<(__VA_ARGS__),void > >
107
114
You can’t perform that action at this time.
0 commit comments