mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
tests/hlsl: Add UAV counter tests.
This commit is contained in:
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
39
tests/hlsl/uav-counter.shader_test
Normal file
39
tests/hlsl/uav-counter.shader_test
Normal 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)
|
Reference in New Issue
Block a user