mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
164076d176
The current default is r32g32b32a32 but it requires special support which is not available on all GPUs, so it is not a very convenient default. Instead of changing the default making it different from RTV resoures, the format is required to always be explicit for UAVs. The exceptions are counter_buffer and buffers with "stride", which don't require a format because it is already implied.
38 lines
490 B
Plaintext
38 lines
490 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)
|