tests/hlsl: Add tests for texture UAV signed atomics.

This commit is contained in:
Conor McCarthy 2024-03-04 15:51:10 +10:00 committed by Alexandre Julliard
parent ee8ca0e9c2
commit eae1411cdc
Notes: Alexandre Julliard 2024-04-23 22:57:34 +02:00
Approved-by: Francisco Casas (@fcasas)
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/684

View File

@ -121,3 +121,27 @@ probe uav 1 (5) rui (3)
probe uav 1 (6) rui (4) probe uav 1 (6) rui (4)
probe uav 1 (7) rui (3) probe uav 1 (7) rui (3)
probe uav 1 (8) rui (1) probe uav 1 (8) rui (1)
[compute shader todo]
RWTexture2D<int> u : register(u2);
uniform int4 i;
[numthreads(3, 1, 1)]
void main()
{
InterlockedMax(u[uint2(0, 0)], i.x);
InterlockedMin(u[uint2(1, 0)], i.y);
}
[test]
uniform 0 int4 1 -3 0 0
todo(sm<6) dispatch 1 1 1
probe uav 2 (0) ri (1)
probe uav 2 (1) ri (-3)
uniform 0 int4 -3 1 0 0
todo(sm<6) dispatch 1 1 1
probe uav 2 (0) ri (1)
probe uav 2 (1) ri (-3)