vkd3d-shader: Apply type modifiers recursively when cloning a type.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura
2021-06-23 23:57:32 -05:00
committed by Alexandre Julliard
parent 1dbb146454
commit faeeed84f9
4 changed files with 30 additions and 23 deletions

View File

@@ -236,3 +236,17 @@ float4 main() : sv_target
{
return float4(0, 0, 0, 0);
}
[pixel shader fail]
typedef struct apple
{
float a;
} apple_t;
uniform const apple_t a;
float4 main() : sv_target
{
a.a = 1;
return a.a;
}