tests/shader-runner: Add a Gather test with non-constant offset.

This commit is contained in:
Conor McCarthy 2024-02-26 15:23:09 +10:00 committed by Alexandre Julliard
parent 7fcf1b6ca2
commit 8337b99a2c
Notes: Alexandre Julliard 2024-03-11 23:05:47 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/677

View File

@ -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)