dawn-cmake/test
Stephen White f9b8b6104d GLSL: implement CombineSamplers transform (string version).
This transform converts all separate texture/sampler references
in a program into combined texture/samplers. This is required for GLSL,
which does not support separate texture/samplers.

As input, the transform requires a map from the unique sampler/texture
pairs previously gathered by the Resolver to strings, which will be
used as the names of the newly-generated combined samplers. Note that
binding points are unused by GLSL, and so are set to (0, 0) with
collision detection disabled.

All function signatures containing textures or samplers are rewritten,
as well as function calls and texture intrinsic calls. For texture
intrinsic calls, a placeholder sampler is used to satisfy the subsequent
Resolver pass (GLSL texture intrinsics do not require a separate sampler,
but WGSL intrinsics do). The placeholder is also used if the shader
contains only texture references (e.g., textureLoad).

Bug: tint:1366

Change-Id: Iff8407d28fdc2a8adac5cb655707a08c8553c389
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/77080
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Stephen White <senorblanco@chromium.org>
2022-01-24 17:17:22 +00:00
..
access wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
array GLSL samples: add empty entry point if needed. 2022-01-21 18:40:18 +00:00
benchmark test-runner: Add test/benchmark to excluded dirs 2022-01-24 15:49:40 +00:00
buffer GLSL samples: add empty entry point if needed. 2022-01-21 18:40:18 +00:00
bug GLSL: implement CombineSamplers transform (string version). 2022-01-24 17:17:22 +00:00
expressions GLSL samples: add empty entry point if needed. 2022-01-21 18:40:18 +00:00
identifiers/underscore GLSL samples: add empty entry point if needed. 2022-01-21 18:40:18 +00:00
intrinsics GLSL: implement CombineSamplers transform (string version). 2022-01-24 17:17:22 +00:00
layout/storage/mat2x2 wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
let wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
loops GLSL samples: add empty entry point if needed. 2022-01-21 18:40:18 +00:00
ptr_ref wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
samples wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
shader_io wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
shadowing GLSL samples: add empty entry point if needed. 2022-01-21 18:40:18 +00:00
statements GLSL samples: add empty entry point if needed. 2022-01-21 18:40:18 +00:00
struct wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
types GLSL: implement CombineSamplers transform (string version). 2022-01-24 17:17:22 +00:00
unittest/reader/spirv wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
var wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
vk-gl-cts Remove passing HLSL expected files for vk-gl-cts 2022-01-20 22:11:07 +00:00
BUILD.gn GLSL: implement CombineSamplers transform (string version). 2022-01-24 17:17:22 +00:00
extract-spvasm.py Add --dump-spirv option to tint_unittests 2021-05-05 09:46:31 +00:00
test-all.sh main: Replace --dawn-validation with --validate 2021-06-02 21:02:34 +00:00