tests: Add a basic shader test for compute shaders.

This commit is contained in:
Zebediah Figura
2021-08-13 16:37:31 -05:00
committed by Alexandre Julliard
parent 6f1f14d97a
commit 75494a4ae6
Notes: Alexandre Julliard 2022-10-19 22:07:47 +02: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/30
11 changed files with 405 additions and 92 deletions

21
tests/compute.shader_test Normal file
View File

@@ -0,0 +1,21 @@
[require]
shader model >= 5.0
[uav 0]
format r32 float
size (1, 1)
0.1
[compute shader]
RWTexture2D<float> u;
[numthreads(1, 1, 1)]
void main()
{
u[uint2(0, 0)] = -123.0;
}
[test]
todo dispatch 1 1 1
todo probe uav 0 (0, 0) r (-123.0)