@@ -75,7 +75,7 @@ var<storage, read_write> outputBuffer: ${
7575var<uniform> scanParameters: ScanParameters;
7676
7777@group(0) @binding(3)
78- var<storage, read_write> scan_bump : atomic<u32>;
78+ var<storage, read_write> scanBump : atomic<u32>;
7979
8080@group(0) @binding(4)
8181var<storage, read_write> spine: array<array<atomic<u32>, 2>>;
@@ -173,9 +173,9 @@ fn main(builtinsUniform: BuiltinsUniform,
173173
174174 // acquire partition index, initialize previous reduction var, set the lock
175175 if (builtinsNonuniform.lidx == 0u) {
176- /** we reset scan_bump back to zero at the end of the kernel to make this
176+ /** we reset scanBump back to zero at the end of the kernel to make this
177177 * kernel idempotent (so we can dispatch it multiple times for timing) */
178- wg_broadcast_tile_id = atomicAdd(&scan_bump , 1u);
178+ wg_broadcast_tile_id = atomicAdd(&scanBump , 1u);
179179 /* this next initialization is important for block 0 because that block never
180180 * enters lookback and thus this broadcast value is never otherwise set */
181181 wg_broadcast_prev_red = ${ this . binop . identity } ;
@@ -502,9 +502,9 @@ fn main(builtinsUniform: BuiltinsUniform,
502502
503503 if (tile_id == scanParameters.work_tiles - 1u) { // this is the last tile
504504 if (builtinsNonuniform.lidx == 0u) {
505- /** reset scan_bump to 0
505+ /** reset scanBump to 0
506506 * reset is safe here because I'm the last wg who incremented it */
507- atomicStore(&scan_bump , 0);
507+ atomicStore(&scanBump , 0);
508508 }
509509 for(var k = 0u; k < VEC4_SPT; k += 1u) {
510510 if (i < scanParameters.vec_size) {
@@ -521,9 +521,9 @@ fn main(builtinsUniform: BuiltinsUniform,
521521 kernel += /* wgsl */ `
522522 if (tile_id == scanParameters.work_tiles - 1u) { // this is the last tile
523523 if (builtinsNonuniform.lidx == 0u) {
524- /** reset scan_bump to 0
524+ /** reset scanBump to 0
525525 * reset is safe here because I'm the last wg who incremented it */
526- atomicStore(&scan_bump , 0);
526+ atomicStore(&scanBump , 0);
527527 outputBuffer[0] = binop(wg_broadcast_prev_red, wg_partials[local_spine - 1u]);
528528 }
529529 }` ;
0 commit comments