tests: Add simple test for implicit cast to int.

This commit is contained in:
Francisco Casas 2024-01-26 22:07:15 -03:00 committed by Alexandre Julliard
parent 4b5c7e3721
commit e62bd1927e
Notes: Alexandre Julliard 2024-02-15 23:59:05 +01:00
Approved-by: Zebediah Figura (@zfigura)
Approved-by: Matteo Bruni (@Mystral)
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/608

View File

@ -1,3 +1,19 @@
[pixel shader todo(sm<4)]
uniform float3 f;
float4 main() : sv_target
{
int3 r = f;
return float4(r, 0);
}
[test]
uniform 0 float4 10.3 11.5 12.8 13.1
todo(sm<4) draw quad
probe all rgba (10, 11, 12, 0)
[pixel shader todo(sm<4)]
uniform float f;
uniform uint u;