dawn-cmake/test/samples
Stephen White b1d2b84f7d GLSL: fix clip space mismatch in gl_Position.
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>
2022-01-26 14:45:55 +00:00
..
compute_boids.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
compute_boids.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
compute_boids.wgsl.expected.hlsl Reland "HLSL: force FXC to never unroll loops" 2021-11-25 18:44:50 +00:00
compute_boids.wgsl.expected.msl msl: Handle buffer variables in transform 2021-10-28 15:00:39 +00:00
compute_boids.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
compute_boids.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
cube.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
cube.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
cube.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
cube.wgsl.expected.msl msl: Handle buffer variables in transform 2021-10-28 15:00:39 +00:00
cube.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
cube.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
function.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
function.wgsl.expected.glsl GLSL: add .expected.glsl files for all tests. 2021-11-16 15:15:36 +00:00
function.wgsl.expected.hlsl writer/hlsl: Simplify emission logic, clean up output 2021-06-16 09:19:36 +00:00
function.wgsl.expected.msl test: Generate expected output for all tests 2021-05-18 09:24:18 +00:00
function.wgsl.expected.spvasm test: Generate expected output for all tests 2021-05-18 09:24:18 +00:00
function.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
simple.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
simple.wgsl.expected.glsl GLSL: add location layout qualifier before in/out variables. 2022-01-25 19:44:14 +00:00
simple.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
simple.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
simple.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
simple.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
simple_vertex.spvasm test: Move misc sample shaders to test/samples 2021-05-18 08:51:48 +00:00
simple_vertex.spvasm.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
simple_vertex.spvasm.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
simple_vertex.spvasm.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
simple_vertex.spvasm.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
simple_vertex.spvasm.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
triangle.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
triangle.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
triangle.wgsl.expected.hlsl Re-allow dynamic indexing of 'let' arrays and matrices 2022-01-06 18:11:01 +00:00
triangle.wgsl.expected.msl Re-allow dynamic indexing of 'let' arrays and matrices 2022-01-06 18:11:01 +00:00
triangle.wgsl.expected.spvasm Re-allow dynamic indexing of 'let' arrays and matrices 2022-01-06 18:11:01 +00:00
triangle.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00