tests: Test specifying a UAV address as an in/out parameter to a function.

This commit is contained in:
Zebediah Figura 2021-09-09 21:10:14 -05:00 committed by Alexandre Julliard
parent 3fbe272659
commit 22a1a478ea
Notes: Alexandre Julliard 2023-01-13 22:23:38 +01:00
Approved-by: Francisco Casas (@fcasas)
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/47
2 changed files with 28 additions and 0 deletions

View File

@ -144,6 +144,7 @@ vkd3d_shader_tests = \
tests/trigonometry.shader_test \
tests/uav.shader_test \
tests/uav-load.shader_test \
tests/uav-out-param.shader_test \
tests/writemask-assignop-0.shader_test \
tests/writemask-assignop-1.shader_test \
tests/writemask-assignop-2.shader_test \

View File

@ -0,0 +1,27 @@
[require]
shader model >= 5.0
[uav 0]
format r32g32b32a32 float
size (1, 1)
0.1 0.2 0.3 0.4
[compute shader todo]
RWTexture2D<float4> u;
void func(inout float4 f)
{
f.xz += 0.1;
}
[numthreads(1, 1, 1)]
void main()
{
func(u[uint2(0, 0)].yzwx);
}
[test]
todo dispatch 1 1 1
todo probe uav 0 (0, 0) rgba (0.1, 0.3, 0.3, 0.5)