You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: include/nbl/builtin/hlsl/subgroup2/arithmetic_portability.hlsl
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -19,27 +19,27 @@ namespace hlsl
19
19
namespace subgroup2
20
20
{
21
21
22
-
template<typename Config, class BinOp, int32_t ItemsPerInvocation=1, class device_capabilities=voidNBL_PRIMARY_REQUIRES(is_configuration_v<Config>)
22
+
template<typename Config, class BinOp, int32_t ItemsPerInvocation=1, class device_capabilities=voidNBL_PRIMARY_REQUIRES(subgroup::is_configuration_v<Config>)
23
23
struct ArithmeticParams
24
24
{
25
25
using config_t = Config;
26
26
using binop_t = BinOp;
27
-
using type_t = typename BinOp::type_t;
27
+
using scalar_t = typename BinOp::type_t; // BinOp should be with scalar type
28
+
using type_t = vector<scalar_t, ItemsPerInvocation>;
NBL_CONSTEXPR_STATIC_INLINE bool UseNativeIntrinsics = device_capabilities_traits<device_capabilities>::shaderSubgroupArithmetic /*&& /*some heuristic for when its faster*/;
0 commit comments