Skip to content

Commit

Permalink
Fix wrong diff in code snippet
Browse files Browse the repository at this point in the history
Signed-off-by: AugFJTan <[email protected]>
  • Loading branch information
AugFJTan authored and greggman committed Aug 31, 2023
1 parent 7ca3bc7 commit 7059118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webgpu/lessons/webgpu-inter-stage-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ We could also split them into separate modules
+ const fsModule = device.createShaderModule({
+ label: 'checkerboard',
+ code: `
- @fragment fn fs(@builtin(position) pixelPosition: vec4f) -> @location(0) vec4f {
- @fragment fn fs(fsInput: OurVertexShaderOutput) -> @location(0) vec4f {
+ @fragment fn fs(@builtin(position) pixelPosition: vec4f) -> @location(0) vec4f {
let red = vec4f(1, 0, 0, 1);
let cyan = vec4f(0, 1, 1, 1);
Expand Down

0 comments on commit 7059118

Please sign in to comment.