mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
tests: Add additional tests for explicit casts with vectors.
This commit is contained in:
parent
5af7316a12
commit
588645a79a
Notes:
Alexandre Julliard
2022-10-26 23:57:26 +02:00
Approved-by: Giovanni Mascellani (@giomasce) 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/40
@ -183,3 +183,58 @@ float4 main() : sv_target
|
|||||||
[test]
|
[test]
|
||||||
draw quad
|
draw quad
|
||||||
probe all rgba (10.0, 10.0, 11.4, 12.4)
|
probe all rgba (10.0, 10.0, 11.4, 12.4)
|
||||||
|
|
||||||
|
|
||||||
|
[pixel shader]
|
||||||
|
float4 main() : sv_target
|
||||||
|
{
|
||||||
|
float f[5] = {11, 12, 13, 14, 15};
|
||||||
|
int4 i;
|
||||||
|
|
||||||
|
i = (int4) f;
|
||||||
|
return i;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
[test]
|
||||||
|
draw quad
|
||||||
|
probe all rgba (11.0, 12.0, 13.0, 14.0)
|
||||||
|
|
||||||
|
|
||||||
|
[pixel shader]
|
||||||
|
struct apple
|
||||||
|
{
|
||||||
|
int2 aa;
|
||||||
|
float bb[2];
|
||||||
|
float cc;
|
||||||
|
};
|
||||||
|
|
||||||
|
float4 main() : sv_target
|
||||||
|
{
|
||||||
|
struct apple a = {21, 22, 23.4, 24.4, 25.0};
|
||||||
|
int4 i;
|
||||||
|
|
||||||
|
i = (int4) a;
|
||||||
|
return i;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
[test]
|
||||||
|
draw quad
|
||||||
|
probe all rgba (21.0, 22.0, 23.0, 24.0)
|
||||||
|
|
||||||
|
|
||||||
|
[pixel shader]
|
||||||
|
float4 main() : sv_target
|
||||||
|
{
|
||||||
|
float4 f = {31.4, 32.4, 33.4, 34.4};
|
||||||
|
int3 i;
|
||||||
|
|
||||||
|
i = (int3) f;
|
||||||
|
return float4(i.x, i.y, i.z, i.z);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
[test]
|
||||||
|
draw quad
|
||||||
|
probe all rgba (31.0, 32.0, 33.0, 33.0)
|
||||||
|
Loading…
Reference in New Issue
Block a user