mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
tests/shader-runner: Add a test for a signed int structured buffer UAV.
Check for backend type mismatches resulting from the absence of signedness in SM 6.
This commit is contained in:
parent
9180ea6591
commit
b447a725ec
Notes:
Alexandre Julliard
2024-02-22 23:03:08 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/642
@ -135,3 +135,24 @@ float4 main() : sv_target
|
|||||||
u[0].x = float3(30.0, 40.0, 50.0);
|
u[0].x = float3(30.0, 40.0, 50.0);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[uav 2]
|
||||||
|
stride 16
|
||||||
|
size (buffer, 2)
|
||||||
|
|
||||||
|
1 2 3 4 5 6 7 8
|
||||||
|
|
||||||
|
[pixel shader todo]
|
||||||
|
RWStructuredBuffer<int4> u : register(u2);
|
||||||
|
|
||||||
|
float4 main() : sv_target1
|
||||||
|
{
|
||||||
|
u[0] = int4(11, -12, 13, -14);
|
||||||
|
u[1] = int4(-15, 16, -17, 18);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
[test]
|
||||||
|
todo draw quad
|
||||||
|
probe uav 2 (0) rgbai (11, -12, 13, -14)
|
||||||
|
probe uav 2 (1) rgbai (-15, 16, -17, 18)
|
||||||
|
Loading…
Reference in New Issue
Block a user