Skip to content

Commit 5a4ad9e

Browse files
committed
Compute inclusive_scan outside of conditional
1 parent 248a2a8 commit 5a4ad9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/nbl/builtin/hlsl/sort/counting.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ struct counting
104104
sdata.workgroupExecutionAndMemoryBarrier();
105105

106106
// no aliasing anymore
107+
sum = inclusive_scan(sdata.get(vid), sdata);
107108
if (vid < KeyBucketCount) {
108-
sum = inclusive_scan(sdata.get(vid), sdata);
109109
histogram.atomicAdd(vid, sum);
110110
}
111111
}

0 commit comments

Comments
 (0)