- May 29, 2021
-
-
Dzmitry Malyshau authored
-
Dzmitry Malyshau authored
-
- May 28, 2021
-
-
Jim Blandy authored
-
- May 26, 2021
-
-
Jim Blandy authored
-
Jim Blandy authored
-
Dzmitry Malyshau authored
-
- May 25, 2021
-
-
João Capucho authored
-
João Capucho authored
Previously the types where changed in a later phase now they are changed right when the argument is added, this makes the implementation slightly less spec compliant because the following code will compile whilst it shouldn't ```glsl void test(float a) {} void test(out float b) {} ```
-
João Capucho authored
-
João Capucho authored
Matrix and vector constructors expected a vector (in the case of the matrix) or a scalar (in both cases). Now they handle resizing such that the following code now works ```glsl mat3 a; mat4(a); // This would return a validation error because it emitted a cast ```
-
João Capucho authored
-
João Capucho authored
-
João Capucho authored
-
Jim Blandy authored
WGSL requires that runtime-sized arrays appear only as the last member of a structure in in the `storage` storage class. It seems to me that Naga should enforce this restriction on its own IR as well.
-
- May 23, 2021
-
-
Jack Foltz authored
-
- May 22, 2021
-
-
Dzmitry Malyshau authored
-
Jim Blandy authored
The `apply_common_default_interpolation` helper function would panic if bindings were missing, but missing bindings should be something that front ends can count on validation to detect, so the helper should just return silently. The validator returned `InvalidType` errors for missing bindings, apparently because variables without bindings must be structs that do have bindings. But this is unhelpful when you've just forgotten to label an argument. So this patch adds a new, more specific, `VaryingError` variant.
-
Jim Blandy authored
-
Jim Blandy authored
-
Jim Blandy authored
-
- May 21, 2021
-
-
Igor Shaposhnik authored
-
Igor Shaposhnik authored
-
João Capucho authored
-
João Capucho authored
-
João Capucho authored
-
João Capucho authored
-
- May 20, 2021
-
-
Jim Blandy authored
-
Dzmitry Malyshau authored
-
- May 19, 2021
-
-
João Capucho authored
-
João Capucho authored
-
João Capucho authored
-
João Capucho authored
The expressions on both sides must now have the same dimensions otherwise a semantic error is returned.
-
João Capucho authored
-
João Capucho authored
Previously we passed a struct with the input bindings and just ignored the outputs. Now we handle them the same way we do with builtins, by creating function local globals that are read and written in a wrapper entry point.
-
João Capucho authored
-
João Capucho authored
-
João Capucho authored
-
João Capucho authored
-
João Capucho authored
Rename TokenMetadata to SourceMetadata to reflect it's actual use
-
João Capucho authored
-