mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
tests: Test swizzles on scalar values.
This commit is contained in:
parent
524029a062
commit
9d7ef64dc0
Notes:
Alexandre Julliard
2023-01-26 23:11:28 +01: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/70
@ -109,3 +109,29 @@ float4 main() : SV_target
|
||||
[test]
|
||||
draw quad
|
||||
probe all rgba (0.1, 0.2, 0.3, 0.4)
|
||||
|
||||
|
||||
[pixel shader]
|
||||
float4 main() : sv_target
|
||||
{
|
||||
float f = 20;
|
||||
|
||||
return f.x.x;
|
||||
}
|
||||
|
||||
[test]
|
||||
draw quad
|
||||
probe all rgba (20.0, 20.0, 20.0, 20.0)
|
||||
|
||||
|
||||
[pixel shader]
|
||||
float4 main() : sv_target
|
||||
{
|
||||
float f = 3;
|
||||
|
||||
return float4(1, 2, f.x.xx);
|
||||
}
|
||||
|
||||
[test]
|
||||
draw quad
|
||||
probe all rgba (1.0, 2.0, 3.0, 3.0)
|
||||
|
Loading…
Reference in New Issue
Block a user