tests/hlsl: Add UAV counter tests.

This commit is contained in:
Conor McCarthy
2024-03-13 16:36:59 +10:00
committed by Alexandre Julliard
parent 8c15377ffc
commit 52a831ba0d
Notes: Alexandre Julliard 2024-03-18 23:24:56 +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/714
6 changed files with 59 additions and 3 deletions

View File

@@ -0,0 +1,39 @@
[require]
shader model >= 5.0
[uav 1]
format r32 uint
size (counter_buffer, 1)
0
[compute shader todo]
RWStructuredBuffer<uint> u : register(u1);
[numthreads(4, 1, 1)]
void main()
{
u.IncrementCounter();
}
[test]
todo dispatch 3 1 1
probe uav 1 (0) rui (12)
[uav 1]
format r32 sint
size (counter_buffer, 1)
0
[compute shader todo]
RWStructuredBuffer<int> u : register(u1);
[numthreads(4, 1, 1)]
void main()
{
u.DecrementCounter();
}
[test]
todo dispatch 3 1 1
probe uav 1 (0) ri (-12)