fragmentWriteGBuffers.wgsl from https://webgpu.github.io/webgpu-samples/samples/deferredRendering#fragmentWriteGBuffers.wgsl does not compile because it writes to multiple render targets and the locations are not specified. I.e., in the generated output: struct type0 { vec<float, 4> normal ; vec<float, 4> albedo ; }; should be: struct type0 { vec<float, 4> normal [[color(0)]]; vec<float, 4> albedo [[color(1)]]; };
<rdar://problem/115849432>
Pull request: https://github.com/WebKit/WebKit/pull/18159
Committed 268436@main (255232f837a9): <https://commits.webkit.org/268436@main> Reviewed commits have been landed. Closing PR #18159 and removing active labels.