mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
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:
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
@@ -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;
|
||||
|
Reference in New Issue
Block a user