@@ -42,7 +42,7 @@ NBL_CONCEPT_END(
4242// * void get(uint32_t index, inout complex_t<Scalar> value);
4343// * void set(uint32_t index, in complex_t<Scalar> value);
4444
45- #define NBL_CONCEPT_NAME SmallFFTAccessor
45+ #define NBL_CONCEPT_NAME FFTAccessor
4646#define NBL_CONCEPT_TPLT_PRM_KINDS (typename)(typename)
4747#define NBL_CONCEPT_TPLT_PRM_NAMES (T)(Scalar)
4848#define NBL_CONCEPT_PARAM_0 (accessor, T)
@@ -53,32 +53,14 @@ NBL_CONCEPT_BEGIN(3)
5353#define index NBL_CONCEPT_PARAM_T NBL_CONCEPT_PARAM_1
5454#define val NBL_CONCEPT_PARAM_T NBL_CONCEPT_PARAM_2
5555NBL_CONCEPT_END (
56- ((NBL_CONCEPT_REQ_EXPR_RET_TYPE)((accessor.set (index, val)), is_same_v, void ))
57- ((NBL_CONCEPT_REQ_EXPR_RET_TYPE)((accessor.get (index, val)), is_same_v, void ))
56+ ((NBL_CONCEPT_REQ_EXPR_RET_TYPE)((accessor.template set<complex_t<Scalar> > (index, val)), is_same_v, void ))
57+ ((NBL_CONCEPT_REQ_EXPR_RET_TYPE)((accessor.template get<complex_t<Scalar> > (index, val)), is_same_v, void ))
5858);
5959#undef val
6060#undef index
6161#undef accessor
6262#include <nbl/builtin/hlsl/concepts/__end.hlsl>
6363
64-
65- // The Accessor MUST provide the following methods:
66- // * void get(uint32_t index, inout complex_t<Scalar> value);
67- // * void set(uint32_t index, in complex_t<Scalar> value);
68- // * void memoryBarrier();
69-
70- #define NBL_CONCEPT_NAME FFTAccessor
71- #define NBL_CONCEPT_TPLT_PRM_KINDS (typename)(typename)
72- #define NBL_CONCEPT_TPLT_PRM_NAMES (T)(Scalar)
73- #define NBL_CONCEPT_PARAM_0 (accessor, T)
74- NBL_CONCEPT_BEGIN (1 )
75- #define accessor NBL_CONCEPT_PARAM_T NBL_CONCEPT_PARAM_0
76- NBL_CONCEPT_END (
77- ((NBL_CONCEPT_REQ_EXPR_RET_TYPE)((accessor.memoryBarrier ()), is_same_v, void ))
78- ) && SmallFFTAccessor<T, Scalar>;
79- #undef accessor
80- #include <nbl/builtin/hlsl/concepts/__end.hlsl>
81-
8264}
8365}
8466}
0 commit comments