Skip to content
Snippets Groups Projects
Commit cab1f57e authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard
Browse files

tests: Add a test for fmod() with vector arguments.

parent fc2aaee2
No related branches found
No related tags found
1 merge request!268vkd3d-shader/hlsl: Handle vector arguments in fmod().
......@@ -11,3 +11,17 @@ probe all rgba (-0.5, 0.0, 0.0, 0.0) 4
uniform 0 float4 1.1 0.3 0.0 0.0
draw quad
probe all rgba (0.2, 0.0, 0.0, 0.0) 4
[pixel shader]
float4 main(uniform float4 u) : sv_target
{
return float4(fmod(u.xy, u.z), 0, 0);
}
[test]
uniform 0 float4 -0.5 6.5 2.0 0.0
draw quad
probe all rgba (-0.5, 0.5, 0.0, 0.0) 4
uniform 0 float4 1.1 0.3 3.0 0.0
draw quad
probe all rgba (1.1, 0.3, 0.0, 0.0) 4
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment