vkd3d-shader/hlsl: Write SM4 dcl_thread_group instructions.

This commit is contained in:
Zebediah Figura
2021-08-16 17:49:09 -05:00
committed by Alexandre Julliard
parent 718c79b823
commit 3857ca06fa
Notes: Alexandre Julliard 2022-11-08 23:05:16 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Francisco Casas (@fcasas)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/43
5 changed files with 36 additions and 27 deletions

View File

@@ -7,7 +7,7 @@ size (1, 1)
0.1
[compute shader todo]
[compute shader]
RWTexture2D<float> u;
[numthreads(1, 1, 1)]
@@ -17,5 +17,5 @@ void main()
}
[test]
todo dispatch 1 1 1
todo probe uav 0 (0, 0) r (-123.0)
dispatch 1 1 1
probe uav 0 (0, 0) r (-123.0)

View File

@@ -3,37 +3,37 @@
[require]
shader model >= 5.0
[compute shader todo]
[compute shader]
[numthreads(1, 1, 1)]
void main() {}
[compute shader fail todo]
[compute shader fail]
[numthreads]
void main() {}
[compute shader fail todo]
[compute shader fail]
[numthreads(1, 1)]
void main() {}
[compute shader fail todo]
[compute shader fail]
[numthreads(1, 1, 1, 1)]
void main() {}
[compute shader fail todo]
[compute shader fail]
[numthreads(0, 1, 1)]
void main() {}
[compute shader fail todo]
[compute shader fail]
[numthreads(1, 0, 1)]
void main() {}
[compute shader fail todo]
[compute shader fail]
[numthreads(1, 1, 0)]
void main() {}
@@ -68,12 +68,12 @@ void main() {}
[numthreads(int(1), 1, 1)]
void main() {}
[compute shader fail todo]
[compute shader fail]
[numthreads(float(1), 1, 1)]
void main() {}
[compute shader fail todo]
[compute shader fail]
[numthreads(uint1(1), 1, 1)]
void main() {}
@@ -99,30 +99,30 @@ static int x = 1;
[numthreads(x, 1, 1)]
void main() {}
[compute shader fail todo]
[compute shader fail]
void main() {}
[compute shader fail todo]
[compute shader fail]
[NumThreads(1, 1, 1)]
void main() {}
[compute shader todo]
[compute shader]
[numthreads(1, 1, 1)]
void main();
void main() {}
[compute shader fail todo]
[compute shader fail]
void main() {}
[numthreads(1, 1, 1)]
void main();
[compute shader fail todo]
[compute shader fail]
void main();

View File

@@ -13,7 +13,7 @@ size (1, 1)
0.5
[compute shader todo]
[compute shader]
RWTexture2D<float> u, v;
[numthreads(1, 1, 1)]
void main()
@@ -23,7 +23,7 @@ void main()
}
[test]
todo dispatch 1 1 1
dispatch 1 1 1
probe uav 0 (0, 0) r (0.6)
probe uav 0 (1, 0) r (0.6)
probe uav 0 (2, 0) r (0.6)