2024-03-12 23:36:59 -07:00
|
|
|
[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]
|
2023-06-13 22:16:55 -07:00
|
|
|
todo(sm<6) dispatch 3 1 1
|
2024-03-12 23:36:59 -07:00
|
|
|
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]
|
2023-06-13 22:16:55 -07:00
|
|
|
todo(sm<6) dispatch 3 1 1
|
2024-03-12 23:36:59 -07:00
|
|
|
probe uav 1 (0) ri (-12)
|