wgpu/tests/out
Jim Blandy d44e2ad207 Simplify interpolation defaulting.
Replace `Module::apply_common_default_interpolation` with a simpler function
that handles a single `Binding` at a time. In exchange for the simplicity, the
function must be called at each point function arguments, function results, and
struct members are prepared. (Any missed spots will be caught by the verifier.)

This approach no longer requires mutating types in the arena, a prerequisite for
properly handling type identity.

Applying defaults to struct members when the struct declaration is parsed does
have a disadvantage, compared to the old whole-module pass: at struct parse
time, we don't yet know which pipeline stages the struct will be used in. The
best we can do is apply defaults to anything with a `Location` binding. This
causes needless qualifiers to appear in some output. However, it seems that our
back end languages all tolerate such qualifiers.
2021-09-27 15:17:41 -04:00
..
analysis Validate that SampleLevel::Exact isn't used for comparisons 2021-08-13 01:45:43 -04:00
dot [wgsl] Storage buffer/texture access (#1142) 2021-07-28 01:47:18 -04:00
glsl Allow unsigned integers in switch 2021-09-21 17:16:51 -04:00
hlsl Simplify interpolation defaulting. 2021-09-27 15:17:41 -04:00
ir Simplify interpolation defaulting. 2021-09-27 15:17:41 -04:00
msl Allow unsigned integers in switch 2021-09-21 17:16:51 -04:00
spv Simplify interpolation defaulting. 2021-09-27 15:17:41 -04:00
wgsl [glsl-in] Allow array constructors 2021-09-21 18:25:43 -04:00