From 7059118d3df0bfbfff9a505f3d28e384351f29ec Mon Sep 17 00:00:00 2001 From: AugFJTan Date: Thu, 31 Aug 2023 10:14:43 +0800 Subject: [PATCH] Fix wrong diff in code snippet Signed-off-by: AugFJTan --- webgpu/lessons/webgpu-inter-stage-variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webgpu/lessons/webgpu-inter-stage-variables.md b/webgpu/lessons/webgpu-inter-stage-variables.md index c58f009c..2cba4dfa 100644 --- a/webgpu/lessons/webgpu-inter-stage-variables.md +++ b/webgpu/lessons/webgpu-inter-stage-variables.md @@ -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);