We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3017088 commit 12d037fCopy full SHA for 12d037f
include/nbl/builtin/hlsl/subgroup2/arithmetic_portability_impl.hlsl
@@ -83,10 +83,10 @@ struct exclusive_scan
83
exclusive_scan_op_t op;
84
scalar_t exclusive = op(retval[ItemsPerInvocation-1]);
85
86
- retval[0] = exclusive;
87
[unroll]
88
for (uint32_t i = 1; i < ItemsPerInvocation; i++)
89
- retval[i] = binop(exclusive,retval[i-1]);
+ retval[ItemsPerInvocation-i] = binop(exclusive,retval[ItemsPerInvocation-i-1]);
+ retval[0] = exclusive;
90
return retval;
91
}
92
};
0 commit comments