vkd3d-shader/hlsl: Initialize default values with braceless initializers.

It is hard to initialize default values on add_assignment() and calling
add_assignment() for initializers is not really necessary: the only
thing we need from it the implicit cast.
This commit is contained in:
Francisco Casas
2024-04-11 13:34:13 -04:00
committed by Henri Verbeet
parent e8dbc36bd2
commit 099a64aeb2
Notes: Henri Verbeet 2024-06-11 16:55:09 +02:00
Approved-by: Elizabeth Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/787
2 changed files with 22 additions and 22 deletions

View File

@@ -21,7 +21,7 @@ todo(glsl) draw quad
probe all rgba (10, 20, 50, 60)
[pixel shader fail(sm<6) todo]
[pixel shader fail(sm<6)]
float a = 7;
float4 b = a; // initial value must be a literal expression.
@@ -138,7 +138,7 @@ todo(glsl) draw quad
probe all rgba (10, 20, 50, 60)
[pixel shader fail(sm<6) todo]
[pixel shader fail(sm<6)]
cbuffer buff
{
float a = 7;