[Git][wine/vkd3d][master] 5 commits: vkd3d-shader/hlsl: Do not abort when modifying a const expression.
Henri Verbeet pushed to branch master at wine / vkd3d Commits: 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. - - - - - 1 changed file: - libs/vkd3d-shader/hlsl.y View it on GitLab: https://gitlab.winehq.org/wine/vkd3d/-/compare/3264378fa04880f9bc8770c260004... -- View it on GitLab: https://gitlab.winehq.org/wine/vkd3d/-/compare/3264378fa04880f9bc8770c260004... You're receiving this email because of your account on gitlab.winehq.org.
participants (1)
-
Henri Verbeet (@hverbeet)