vkd3d-shader/hlsl: Skip functions that don't have a body when looking for the entry point.

This commit is contained in:
Zebediah Figura
2021-09-11 18:18:50 -05:00
committed by Alexandre Julliard
parent 09c5ed27fe
commit bb41c3b5fe
Notes: Alexandre Julliard 2023-02-13 22:20:34 +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/85
3 changed files with 25 additions and 5 deletions

View File

@@ -264,3 +264,7 @@ float4 main() : sv_target
{
return 1.0;
}
[pixel shader fail]
float4 main() : sv_target;