mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
tests/shader-runner: Add a Gather test with non-constant offset.
This commit is contained in:
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
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user