From 26656808e672ede748473ea95e0ab1ea18079097 Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani Date: Fri, 11 Apr 2025 14:38:25 +0200 Subject: [PATCH] tests/hlsl: Remove a test in which a function reads an "out" argument. The code doesn't make sense in the first place, even if it's accepted by the compiler, so it makes sense that the behaviour is undefined. And indeed the behaviour is different on AMD (4 is returned), NVIDIA (QNaN is returned) and WARP (device is removed). --- tests/hlsl/function.shader_test | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/hlsl/function.shader_test b/tests/hlsl/function.shader_test index b2bc6769e..f2795f668 100644 --- a/tests/hlsl/function.shader_test +++ b/tests/hlsl/function.shader_test @@ -453,10 +453,6 @@ float4 main() : sv_target return float4(x, y, 0, 0); } -[test] -todo draw quad -probe (0, 0) rgba (4.0, 4.0, 0.0, 0.0) - [pixel shader fail(sm<6)] float func(float a, inout float b = 1.0) {