vkd3d-shader/hlsl: Use add_cast() in append_conditional_break().

Instead of creating a cast node directly.

This specifically handles the 1x1 matrix case, which currently the backend code does not expect.
This commit is contained in:
Elizabeth Figura
2024-09-20 13:23:17 -05:00
committed by Henri Verbeet
parent 1e97e1203f
commit b2cddecfc5
Notes: Henri Verbeet 2024-09-23 15:57:02 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1099
2 changed files with 4 additions and 3 deletions

View File

@@ -102,7 +102,7 @@ float4 main() : sv_target
return 0;
}
[pixel shader todo]
[pixel shader]
static const float1x1 f;
float4 main() : sv_target
{