Module: vkd3d Branch: master Commit: ef4990d9966df3aeb17a517582d97b0f770e9b9b URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/ef4990d9966df3aeb17a517582d97b...
Author: Giovanni Mascellani gmascellani@codeweavers.com Date: Wed Oct 5 13:59:43 2022 +0200
tests: Test int absolute value.
---
tests/arithmetic-int-uniform.shader_test | 13 +++++++++++++ 1 file changed, 13 insertions(+)
diff --git a/tests/arithmetic-int-uniform.shader_test b/tests/arithmetic-int-uniform.shader_test index ff80a9b0..643c910b 100644 --- a/tests/arithmetic-int-uniform.shader_test +++ b/tests/arithmetic-int-uniform.shader_test @@ -27,3 +27,16 @@ float4 main() : SV_TARGET uniform 0 float4 5.0 16.0 0.0 0.0 todo draw quad probe all rgba (5.0, 5.0, -5.0, 3.0) + +[pixel shader] +uniform float4 a; + +float4 main() : SV_TARGET +{ + return abs(int4(a)); +} + +[test] +uniform 0 float4 5.0 -7.0 0.0 -10.0 +todo draw quad +probe all rgba (5.0, 7.0, 0.0, 10.0)