vkd3d/tests/hlsl/uav-counter.shader_test
Francisco Casas b701f8d393 tests/shader_runner: Explicitly require UAV load support.
The used UAV formats are explicitly added in the [require] section of
every test that uses them.

Some of these tests were failing on Intel UHD graphics 770 because of
missing support for additional UAV load types, explicitly requiring
these formats allows these tests to be skipped.
2024-08-22 16:22:18 +02:00

37 lines
489 B
Plaintext

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