b1d2b84f7d
OpenGL clips against [-w, w], while WebGPU uses [0, w]. The fix is to modify gl_Position.z on output to match GLSL semantics. (This is the same code used by SPIRV-Cross under the fixup_clipspace option.) Bug: tint:1401 Change-Id: I1b1511352eee11cd9b095cd809aa8e1263c6cf4c Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/78261 Reviewed-by: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Stephen White <senorblanco@chromium.org> |
||
---|---|---|
.. | ||
0e97b3.wgsl | ||
0e97b3.wgsl.expected.glsl | ||
0e97b3.wgsl.expected.hlsl | ||
0e97b3.wgsl.expected.msl | ||
0e97b3.wgsl.expected.spvasm | ||
0e97b3.wgsl.expected.wgsl |