vkd3d-shader/hlsl: Allow 'const' modifier without initializer in the global scope.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
Nikolay Sivov
2023-08-09 13:13:39 +02:00
committed by Alexandre Julliard
parent 7fd10bb6bc
commit 4f2e07a45d
Notes: Alexandre Julliard 2023-08-15 22:06:39 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Zebediah Figura (@zfigura)
Approved-by: Francisco Casas (@fcasas)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/302
2 changed files with 9 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
[pixel shader todo]
[pixel shader]
const float4 f1;
const uniform float4 f2;
@@ -10,8 +10,8 @@ float4 main() : sv_target
[test]
uniform 0 float4 1.0 2.0 3.0 4.0
uniform 4 float4 0.1 0.2 0.3 0.4
todo draw quad
todo probe all rgba (1.1, 2.2, 3.3, 4.4)
draw quad
probe all rgba (1.1, 2.2, 3.3, 4.4)
[pixel shader fail]
float4 main() : sv_target