dawn-cmake/test/intrinsics
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
..
arrayLength GLSL: move entry point handling to CanonicalizeEntryPointIO transform. 2022-01-28 22:36:58 +00:00
gen GLSL: fix shadow samplers, and textures generally. 2022-02-02 15:25:42 +00:00
textureDimensions GLSL: move entry point handling to CanonicalizeEntryPointIO transform. 2022-01-28 22:36:58 +00:00
textureGather GLSL: move entry point handling to CanonicalizeEntryPointIO transform. 2022-01-28 22:36:58 +00:00
textureLoad GLSL: move entry point handling to CanonicalizeEntryPointIO transform. 2022-01-28 22:36:58 +00:00
textureNumSamples GLSL: move entry point handling to CanonicalizeEntryPointIO transform. 2022-01-28 22:36:58 +00:00
degrees.spvasm spirv-reader: Polyfill GLSLStd450 Degrees and Radians 2021-07-26 09:12:57 +00:00
degrees.spvasm.expected.glsl GLSL: move entry point handling to CanonicalizeEntryPointIO transform. 2022-01-28 22:36:58 +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: move entry point handling to CanonicalizeEntryPointIO transform. 2022-01-28 22:36:58 +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: move entry point handling to CanonicalizeEntryPointIO transform. 2022-01-28 22:36:58 +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 GLSL: move entry point handling to CanonicalizeEntryPointIO transform. 2022-01-28 22:36:58 +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 GLSL: move entry point handling to CanonicalizeEntryPointIO transform. 2022-01-28 22:36:58 +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