mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
tests: Test x + 0 and x * 1 indentities.
This commit is contained in:
parent
13e1491941
commit
c43c900a30
Notes:
Alexandre Julliard
2024-04-30 23:13:01 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Zebediah Figura (@zfigura) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/809
@ -187,3 +187,21 @@ uniform 4 double2 1.625 -5.0
|
|||||||
uniform 8 double2 1.00000007 -1.0
|
uniform 8 double2 1.00000007 -1.0
|
||||||
todo(sm<6) draw quad
|
todo(sm<6) draw quad
|
||||||
probe all rgba (2.62500024, 209.5, 0.0, 0.0)
|
probe all rgba (2.62500024, 209.5, 0.0, 0.0)
|
||||||
|
|
||||||
|
|
||||||
|
% Test result when instructions might be removed because they are identities such as (+0) or (*1).
|
||||||
|
[pixel shader]
|
||||||
|
float4 a;
|
||||||
|
|
||||||
|
float4 main() : sv_target
|
||||||
|
{
|
||||||
|
float4 zero = {0, 0, 0, 0};
|
||||||
|
float4 one = {1, 1, 1, 1};
|
||||||
|
|
||||||
|
return a + zero + a * one + zero * one;
|
||||||
|
}
|
||||||
|
|
||||||
|
[test]
|
||||||
|
uniform 0 float4 0.2 0.3 9.1 3.2
|
||||||
|
todo(glsl) draw quad
|
||||||
|
probe all rgba (0.4, 0.6, 18.2, 6.4)
|
||||||
|
Loading…
Reference in New Issue
Block a user