vkd3d-shader/hlsl: Parse function attributes.

This commit is contained in:
Zebediah Figura
2021-08-16 14:52:10 -05:00
committed by Alexandre Julliard
parent da56f41ceb
commit d6799bd5d3
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
7 changed files with 164 additions and 35 deletions

View File

@ -8,52 +8,52 @@ shader model >= 5.0
[numthreads(1, 1, 1)]
void main() {}
[compute shader fail]
[compute shader fail todo]
[numthreads]
void main() {}
[compute shader fail]
[compute shader fail todo]
[numthreads(1, 1)]
void main() {}
[compute shader fail]
[compute shader fail todo]
[numthreads(1, 1, 1, 1)]
void main() {}
[compute shader fail]
[compute shader fail todo]
[numthreads(0, 1, 1)]
void main() {}
[compute shader fail]
[compute shader fail todo]
[numthreads(1, 0, 1)]
void main() {}
[compute shader fail]
[compute shader fail todo]
[numthreads(1, 1, 0)]
void main() {}
[compute shader fail]
[compute shader fail todo]
[numthreads(-1, 1, 1)]
void main() {}
[compute shader fail]
[compute shader fail todo]
[numthreads(1, -1, 1)]
void main() {}
[compute shader fail]
[compute shader fail todo]
[numthreads(1, 1, -1)]
void main() {}
[compute shader fail]
[compute shader fail todo]
[numthreads(1, -1, -1)]
void main() {}
@ -68,12 +68,12 @@ void main() {}
[numthreads(int(1), 1, 1)]
void main() {}
[compute shader fail]
[compute shader fail todo]
[numthreads(float(1), 1, 1)]
void main() {}
[compute shader fail]
[compute shader fail todo]
[numthreads(uint1(1), 1, 1)]
void main() {}
@ -103,7 +103,7 @@ void main() {}
void main() {}
[compute shader fail]
[compute shader fail todo]
[NumThreads(1, 1, 1)]
void main() {}
@ -115,21 +115,21 @@ void main();
void main() {}
[compute shader fail]
[compute shader fail todo]
void main() {}
[numthreads(1, 1, 1)]
void main();
[compute shader fail]
[compute shader fail todo]
void main();
[numthreads(1, 1, 1)]
void main() {}
[compute shader fail]
[compute shader fail todo]
/* Expressions with side effects are forbidden in attributes (but not if the
* attribute is ignored). */
@ -139,14 +139,14 @@ static int x = 1;
[numthreads(x++, 1, 1)]
void main() {}
[compute shader fail]
[compute shader fail todo]
static int x = 1;
[numthreads(++x, 1, 1)]
void main() {}
[compute shader fail]
[compute shader fail todo]
static int x = 1;