tests: Do not use global half values.

They are not allowed by the native compiler, except in compatibility
mode.
This commit is contained in:
Giovanni Mascellani
2023-10-13 16:55:50 +02:00
committed by Alexandre Julliard
parent 54239da200
commit 90f9407b80
Notes: Alexandre Julliard 2023-10-18 22:51:21 +02:00
Approved-by: Zebediah Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/412
7 changed files with 34 additions and 10 deletions

View File

@@ -5,7 +5,7 @@ shader model >= 4.0
uniform float f;
uniform int i;
uniform uint u;
uniform half h;
uniform float h;
float4 main() : sv_target
{
@@ -14,7 +14,7 @@ float4 main() : sv_target
ret.x = asuint(f);
ret.y = asuint(i);
ret.z = asuint(u);
ret.w = asuint(h);
ret.w = asuint((half)h);
return ret;
}