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 16e1678 commit 6ee14d1Copy full SHA for 6ee14d1
examples/webgpu_compute_prefix_sum.html
@@ -224,8 +224,9 @@
224
const jStart = uint( pow( 2, iteration ).sub( 1 ) );
225
const kIters = uint( pow( 2, iteration ) );
226
227
+ // Emulate iteration through and k
228
const accessIndex = jStart.add( step.mul( invocationLocalIndex.div( kIters ) ) );
- const assignIndex = fract( invocationLocalIndex, kIters ).add( 1 );
229
+ const assignIndex = jStart.add( fract( invocationLocalIndex, kIters ) ).add( 1 );
230
231
currentElements.element( assignIndex ).addAssign( currentElements.element( accessIndex ) );
232
0 commit comments