mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
tests: Add RWBuffer writing test.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
parent
66dab357eb
commit
1af662ae50
Notes:
Alexandre Julliard
2023-05-22 23:19:48 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Zebediah Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/193
@ -1,6 +1,15 @@
|
||||
[require]
|
||||
shader model >= 5.0
|
||||
|
||||
% UAVs are implicitly allocated starting from the highest render target slot.
|
||||
% They cannot overlap render target slots, and also cannot be allocated any
|
||||
% lower than the highest render target.
|
||||
% This ceases to be true with shader model 5.1.
|
||||
|
||||
[render target 1]
|
||||
format r32g32b32a32 float
|
||||
size (640, 480)
|
||||
|
||||
[pixel shader]
|
||||
struct s
|
||||
{
|
||||
@ -78,3 +87,21 @@ float4 main() : sv_target1
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
[buffer uav 2]
|
||||
size (1, 1)
|
||||
|
||||
0.1 0.2 0.3 0.4
|
||||
|
||||
[pixel shader]
|
||||
RWBuffer<float4> u : register(u2);
|
||||
|
||||
float4 main() : sv_target1
|
||||
{
|
||||
u[0] = float4(11.1, 12.2, 13.3, 14.4);
|
||||
return 0;
|
||||
}
|
||||
|
||||
[test]
|
||||
draw quad
|
||||
probe buffer uav 2 (0, 0) rgba (11.1, 12.2, 13.3, 14.4)
|
||||
|
Loading…
x
Reference in New Issue
Block a user