-
9c70348b
by Elizabeth Figura at 2024-12-03T12:39:27+01:00
vkd3d-shader/hlsl: Do not abort when modifying a const expression.
-
97eac342
by Elizabeth Figura at 2024-12-03T12:39:27+01:00
vkd3d-shader/hlsl: Do not abort parsing when invalid modifiers are used.
-
c553c45f
by Elizabeth Figura at 2024-12-03T12:39:27+01:00
vkd3d-shader/hlsl: Move the numeric type check to add_constructor().
-
e060b473
by Elizabeth Figura at 2024-12-03T12:39:27+01:00
vkd3d-shader/hlsl: Return an error expression when a function is used as a variable.
-
8bc9e156
by Elizabeth Figura at 2024-12-03T12:39:27+01:00
vkd3d-shader/hlsl: Translate invalid implicit-size arrays to an error type.
Instead of returning nonsense (such as, currently, a type with zero size).
In practice this improves error reporting for shaders such as the following:
void func(float x[])
{
float y[] = {x};
}
Currently this outputs a nonsense
test.hlsl:1:19: E5002: Implicit size arrays not allowed in function parameters.
test.hlsl:3:7: E5002: Implicit size arrays need to be initialized.
With this patch the second warning is removed.