dawn-cmake/test/intrinsics
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
..
arrayLength GLSL: standardize layout() formatting (whitespace change). 2022-01-25 20:06:05 +00:00
gen GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
ignore GLSL: standardize layout() formatting (whitespace change). 2022-01-25 20:06:05 +00:00
textureDimensions GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
textureGather GLSL: implement CombineSamplers transform (string version). 2022-01-24 17:17:22 +00:00
textureLoad GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
textureNumSamples GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
degrees.spvasm spirv-reader: Polyfill GLSLStd450 Degrees and Radians 2021-07-26 09:12:57 +00:00
degrees.spvasm.expected.glsl intrinsics: Add degrees() and radians() 2022-01-05 20:11:00 +00:00
degrees.spvasm.expected.hlsl intrinsics: Add degrees() and radians() 2022-01-05 20:11:00 +00:00
degrees.spvasm.expected.msl intrinsics: Add degrees() and radians() 2022-01-05 20:11:00 +00:00
degrees.spvasm.expected.spvasm intrinsics: Add degrees() and radians() 2022-01-05 20:11:00 +00:00
degrees.spvasm.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
frexp.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
frexp.wgsl.expected.glsl GLSL: add .expected.glsl files for all tests. 2021-11-16 15:15:36 +00:00
frexp.wgsl.expected.hlsl intrinsics: Add new struct form of modf(), frexp() 2021-07-23 16:43:01 +00:00
frexp.wgsl.expected.msl intrinsics: Add new struct form of modf(), frexp() 2021-07-23 16:43:01 +00:00
frexp.wgsl.expected.spvasm reader/wgsl: Allow identifiers to start with an underscore 2021-11-19 21:52:13 +00:00
frexp.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
intrinsics.wgsl.tmpl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
modf.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
modf.wgsl.expected.glsl GLSL: add .expected.glsl files for all tests. 2021-11-16 15:15:36 +00:00
modf.wgsl.expected.hlsl intrinsics: Add new struct form of modf(), frexp() 2021-07-23 16:43:01 +00:00
modf.wgsl.expected.msl intrinsics: Add new struct form of modf(), frexp() 2021-07-23 16:43:01 +00:00
modf.wgsl.expected.spvasm reader/wgsl: Allow identifiers to start with an underscore 2021-11-19 21:52:13 +00:00
modf.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
radians.spvasm spirv-reader: Polyfill GLSLStd450 Degrees and Radians 2021-07-26 09:12:57 +00:00
radians.spvasm.expected.glsl intrinsics: Add degrees() and radians() 2022-01-05 20:11:00 +00:00
radians.spvasm.expected.hlsl intrinsics: Add degrees() and radians() 2022-01-05 20:11:00 +00:00
radians.spvasm.expected.msl intrinsics: Add degrees() and radians() 2022-01-05 20:11:00 +00:00
radians.spvasm.expected.spvasm intrinsics: Add degrees() and radians() 2022-01-05 20:11:00 +00:00
radians.spvasm.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
repeated_use.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
repeated_use.wgsl.expected.glsl Update GLSL expected results. 2021-12-21 01:48:13 +00:00
repeated_use.wgsl.expected.hlsl intrinsics: Deprecate isNan, isInf, isFinite, isNormal 2021-11-23 18:57:57 +00:00
repeated_use.wgsl.expected.msl intrinsics: Deprecate isNan, isInf, isFinite, isNormal 2021-11-23 18:57:57 +00:00
repeated_use.wgsl.expected.spvasm intrinsics: Deprecate isNan, isInf, isFinite, isNormal 2021-11-23 18:57:57 +00:00
repeated_use.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00