Skip to content

Commit f81c184

Browse files
authored
fix incorrect diff deletion line in split uniforms example (#214)
1 parent 7282d9c commit f81c184

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

webgpu/lessons/webgpu-uniforms.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,8 +467,7 @@ When we need 2 uniform buffers per thing we want to draw
467467
uniformValues.set([rand(), rand(), rand(), 1], kColorOffset); // set the color
468468
uniformValues.set([rand(-0.9, 0.9), rand(-0.9, 0.9)], kOffsetOffset); // set the offset
469469

470-
// copy these values to the GPU
471-
- device.queue.writeBuffer(uniformBuffer, 0, uniformValues);
470+
+ // copy these values to the GPU
472471
+ device.queue.writeBuffer(staticUniformBuffer, 0, uniformValues);
473472
}
474473

0 commit comments

Comments
 (0)