From 7dbc879e2dfb8ca5afe08b8faa4e0637c960eb35 Mon Sep 17 00:00:00 2001 From: Francisco Casas Date: Fri, 13 Jan 2023 17:14:31 -0300 Subject: [PATCH] tests: Test sqrt() intrinsic. --- Makefile.am | 1 + tests/sqrt.shader_test | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/sqrt.shader_test diff --git a/Makefile.am b/Makefile.am index 464b43ae..ed94f086 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 \ diff --git a/tests/sqrt.shader_test b/tests/sqrt.shader_test new file mode 100644 index 00000000..81bf99a4 --- /dev/null +++ b/tests/sqrt.shader_test @@ -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