tests: Add some more tests for RWByteAddressBuffer store methods.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
Nikolay Sivov 2024-10-25 10:26:28 +02:00 committed by Henri Verbeet
parent cf27065b7d
commit 6637948ae1
Notes: Henri Verbeet 2024-10-28 18:12:37 +01:00
Approved-by: Elizabeth Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1222

View File

@ -23,6 +23,47 @@ probe uav 1 (0) ri (10)
if(sm<6) probe uav 1 (1) ri (11) if(sm<6) probe uav 1 (1) ri (11)
if(sm>=6) probe uav 1 (1) r (11.1) if(sm>=6) probe uav 1 (1) r (11.1)
[pixel shader todo]
RWByteAddressBuffer u : register(u1);
float4 main() : sv_target
{
u.Store2(0, uint2(10, 11));
u.Store2(8, float2(12.2f, 13.3f));
return 0;
}
[test]
todo(sm<6) draw quad
probe uav 1 (0) rgbaui(10, 11, 12, 13)
[pixel shader todo]
RWByteAddressBuffer u : register(u1);
float4 main() : sv_target
{
u.Store(0, 20);
u.Store3(4, uint3(21, 22, 23));
return 0;
}
[test]
todo(sm<6) draw quad
probe uav 1 (0) rgbaui(20, 21, 22, 23)
[pixel shader todo]
RWByteAddressBuffer u : register(u1);
float4 main() : sv_target
{
u.Store(0, 20);
u.Store3(4, float3(21.1f, 22.2f, 23.3f));
return 0;
}
[test]
todo(sm<6) draw quad
probe uav 1 (0) rgbaui(20, 21, 22, 23)
[require] [require]
shader model >= 5.0 shader model >= 5.0