Skip to content
Snippets Groups Projects
Commit eae1411c authored by Conor McCarthy's avatar Conor McCarthy Committed by Alexandre Julliard
Browse files

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

parent ee8ca0e9
No related branches found
No related tags found
1 merge request!684tests/shader-runner: Improve test coverage.
......@@ -121,3 +121,27 @@ probe uav 1 (5) rui (3)
probe uav 1 (6) rui (4)
probe uav 1 (7) rui (3)
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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment