Module: vkd3d Branch: master Commit: 8337b99a2c105015c5c5861779fe2f64088dcb3f URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/8337b99a2c105015c5c5861779fe2f...
Author: Conor McCarthy cmccarthy@codeweavers.com Date: Mon Feb 26 15:23:09 2024 +1000
tests/shader-runner: Add a Gather test with non-constant offset.
---
tests/hlsl/gather-offset.shader_test | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
diff --git a/tests/hlsl/gather-offset.shader_test b/tests/hlsl/gather-offset.shader_test index ce063c14..b3da9dd9 100644 --- a/tests/hlsl/gather-offset.shader_test +++ b/tests/hlsl/gather-offset.shader_test @@ -99,3 +99,19 @@ float4 main() : sv_target [test] todo(sm>=6) draw quad probe all rgba (0.0, 0.4, 0.0, 0.4) + + +[pixel shader] +sampler s; +Texture2D t; +uniform int2 offset; + +float4 main() : sv_target +{ + return t.Gather(s, float2(0.2, 0.2), offset); +} + +[test] +uniform 0 int4 1 0 0 0 +todo(sm>=6) draw quad +probe all rgba (0.1, 0.2, 0.2, 0.1)