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/sort/counting.hlsl
+21-8Lines changed: 21 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -52,8 +52,9 @@ struct counting
52
52
53
53
sdata.workgroupExecutionAndMemoryBarrier();
54
54
55
+
// Parallel reads must be coalesced
55
56
uint32_t index = workGroupIndex * GroupSize * params.elementsPerWT + tid;
56
-
uint32_t endIndex = min(params.dataElementCount, index + GroupSize * params.elementsPerWT);
57
+
uint32_t endIndex = min(params.dataElementCount, index + GroupSize * params.elementsPerWT);// implicitly breaks when params.dataElementCount is reached
0 commit comments