Skip to content

Commit

Permalink
Merge pull request #27 from jiahaog/patch-2
Browse files Browse the repository at this point in the history
Add missing diff markers for the position getter
  • Loading branch information
greggman authored Jun 26, 2023
2 parents a195e6b + 6d5a431 commit 2e317ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webgpu/lessons/webgpu-storage-buffers.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,8 @@ struct VSOutput {
var vsOut: VSOutput;
vsOut.position = vec4f(
pos[vertexIndex].position * otherStruct.scale + ourStruct.offset, 0.0, 1.0);
- pos[vertexIndex] * otherStruct.scale + ourStruct.offset, 0.0, 1.0);
+ pos[vertexIndex].position * otherStruct.scale + ourStruct.offset, 0.0, 1.0);
vsOut.color = ourStruct.color;
return vsOut;
}
Expand Down

0 comments on commit 2e317ba

Please sign in to comment.