mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
tests: Add a test for storing to a UAV array.
This commit is contained in:
parent
8044fce040
commit
4096d453c4
Notes:
Alexandre Julliard
2022-10-31 22:39:35 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Zebediah Figura (@zfigura) Approved-by: Francisco Casas (@fcasas) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/36
@ -120,3 +120,30 @@ float4 main() : sv_target1
|
||||
[test]
|
||||
todo draw quad
|
||||
probe uav 3 (0, 0) rgba (0.9, 0.8, 0.7, 0.6)
|
||||
|
||||
% Test that we can declare and use an array of UAVs.
|
||||
|
||||
[uav 2]
|
||||
size (1, 1)
|
||||
|
||||
0.1 0.2 0.3 0.4
|
||||
|
||||
[uav 3]
|
||||
size (1, 1)
|
||||
|
||||
0.5 0.6 0.7 0.8
|
||||
|
||||
[pixel shader]
|
||||
RWTexture2D<float4> u[2] : register(u2);
|
||||
|
||||
float4 main() : sv_target1
|
||||
{
|
||||
u[0][uint2(0, 0)] = float4(1.1, 1.2, 1.3, 1.4);
|
||||
u[1][uint2(0, 0)] = float4(2.1, 2.2, 2.3, 2.4);
|
||||
return 0;
|
||||
}
|
||||
|
||||
[test]
|
||||
todo draw quad
|
||||
probe uav 2 (0, 0) rgba (1.1, 1.2, 1.3, 1.4)
|
||||
probe uav 3 (0, 0) rgba (2.1, 2.2, 2.3, 2.4)
|
||||
|
Loading…
Reference in New Issue
Block a user