tests: Test sqrt() intrinsic.

This commit is contained in:
Francisco Casas 2023-01-13 17:14:31 -03:00 committed by Alexandre Julliard
parent 8d5f16d803
commit 7dbc879e2d
Notes: Alexandre Julliard 2023-01-19 22:45:36 +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/62
2 changed files with 13 additions and 0 deletions

View File

@ -131,6 +131,7 @@ vkd3d_shader_tests = \
tests/sampler-offset.shader_test \
tests/saturate.shader_test \
tests/shader-interstage-interface.shader_test \
tests/sqrt.shader_test \
tests/swizzle-0.shader_test \
tests/swizzle-1.shader_test \
tests/swizzle-2.shader_test \

12
tests/sqrt.shader_test Normal file
View File

@ -0,0 +1,12 @@
[pixel shader todo]
uniform float4 f;
float4 main() : sv_target
{
return sqrt(f);
}
[test]
uniform 0 float4 1.0 9.0 32.3 46.5
todo draw quad
todo probe all rgba (1.0, 3.0, 5.683309, 6.819091) 1