dawn-cmake/test/intrinsics/gen/textureSampleCompare
Stephen White d4d7153bad GLSL: fix shadow samplers, and textures generally.
1) Append "Shadow" to samplers representing depth textures.
2) Sampling a depth texture returns f32, not vec4<f32>
3) Sampling a depth texture requires a Dref parameter, so we must
   generate one if none is provided.
4) GLSL requires Dref to be appended to the texture coordinates vector,
   *unless* it's a samplerCubeArrayShadow, since this would require vec5.
   In that case, it's passed as a separate parameter.
5) GLSL's textureGather() with a depth sampler always requires a refZ
   parameter, so provide zero to emulate WGSL's compare-less textureGather().
6) texelFetch() does not support depth textures, so this will have to be
   validated out.
7) textureOffset() does not support sampler2DArrayShadow in GLES, so this will
   have to be validated out.

Bug: tint:1298
Change-Id: Idaebe89cac6c1ec97c50a361b1d3aa3b84fb6c12
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/78760
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Stephen White <senorblanco@chromium.org>
2022-02-02 15:25:42 +00:00
..
3a5923.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
3a5923.wgsl.expected.glsl GLSL: fix shadow samplers, and textures generally. 2022-02-02 15:25:42 +00:00
3a5923.wgsl.expected.hlsl writer/hlsl: Simplify emission logic, clean up output 2021-06-16 09:19:36 +00:00
3a5923.wgsl.expected.msl msl: Automatically remap binding numbers in exe 2021-08-12 19:47:20 +00:00
3a5923.wgsl.expected.spvasm intrinsics: textureSampleCompareLevel() 2021-06-14 15:29:34 +00:00
3a5923.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
25fcd1.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
25fcd1.wgsl.expected.glsl GLSL: fix shadow samplers, and textures generally. 2022-02-02 15:25:42 +00:00
25fcd1.wgsl.expected.hlsl writer/hlsl: Simplify emission logic, clean up output 2021-06-16 09:19:36 +00:00
25fcd1.wgsl.expected.msl msl: Automatically remap binding numbers in exe 2021-08-12 19:47:20 +00:00
25fcd1.wgsl.expected.spvasm intrinsics: textureSampleCompareLevel() 2021-06-14 15:29:34 +00:00
25fcd1.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
63fb83.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
63fb83.wgsl.expected.glsl GLSL: fix shadow samplers, and textures generally. 2022-02-02 15:25:42 +00:00
63fb83.wgsl.expected.hlsl writer/hlsl: Simplify emission logic, clean up output 2021-06-16 09:19:36 +00:00
63fb83.wgsl.expected.msl msl: Automatically remap binding numbers in exe 2021-08-12 19:47:20 +00:00
63fb83.wgsl.expected.spvasm intrinsics: textureSampleCompareLevel() 2021-06-14 15:29:34 +00:00
63fb83.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
98b85c.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
98b85c.wgsl.expected.glsl GLSL: fix shadow samplers, and textures generally. 2022-02-02 15:25:42 +00:00
98b85c.wgsl.expected.hlsl writer/hlsl: Simplify emission logic, clean up output 2021-06-16 09:19:36 +00:00
98b85c.wgsl.expected.msl msl: Automatically remap binding numbers in exe 2021-08-12 19:47:20 +00:00
98b85c.wgsl.expected.spvasm intrinsics: textureSampleCompareLevel() 2021-06-14 15:29:34 +00:00
98b85c.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
a3ca7e.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
a3ca7e.wgsl.expected.glsl GLSL: fix shadow samplers, and textures generally. 2022-02-02 15:25:42 +00:00
a3ca7e.wgsl.expected.hlsl writer/hlsl: Simplify emission logic, clean up output 2021-06-16 09:19:36 +00:00
a3ca7e.wgsl.expected.msl msl: Automatically remap binding numbers in exe 2021-08-12 19:47:20 +00:00
a3ca7e.wgsl.expected.spvasm intrinsics: textureSampleCompareLevel() 2021-06-14 15:29:34 +00:00
a3ca7e.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
dd431d.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
dd431d.wgsl.expected.glsl GLSL: fix shadow samplers, and textures generally. 2022-02-02 15:25:42 +00:00
dd431d.wgsl.expected.hlsl writer/hlsl: Simplify emission logic, clean up output 2021-06-16 09:19:36 +00:00
dd431d.wgsl.expected.msl msl: Automatically remap binding numbers in exe 2021-08-12 19:47:20 +00:00
dd431d.wgsl.expected.spvasm intrinsics: textureSampleCompareLevel() 2021-06-14 15:29:34 +00:00
dd431d.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00