Skip to content

Commit

Permalink
Update webgpu-compute-shaders-histogram.md
Browse files Browse the repository at this point in the history
Small typo there! Got me confused for few minutes с:
  • Loading branch information
Ch1sKey authored and greggman committed May 5, 2024
1 parent 055e7b7 commit f7f7188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webgpu/lessons/webgpu-compute-shaders-histogram.md
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ then we create our shader
@compute @workgroup_size(1) fn cs() {
let size = textureDimensions(ourTexture, 0);
let numBins = f32(arrayLength(&histogram));
let numBins = f32(arrayLength(&bins));
let lastBinIndex = u32(numBins - 1);
for (var y = 0u; y < size.y; y++) {
for (var x = 0u; x < size.x; x++) {
Expand Down

0 comments on commit f7f7188

Please sign in to comment.