mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/hlsl: Emit a hlsl_fixme() if multiple valid entry point definitions are given.
This commit is contained in:
parent
bb41c3b5fe
commit
0cf39f3c63
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
@ -2696,8 +2696,13 @@ int hlsl_compile_shader(const struct vkd3d_shader_code *hlsl, const struct vkd3d
|
|||||||
{
|
{
|
||||||
if (!decl->has_body)
|
if (!decl->has_body)
|
||||||
continue;
|
continue;
|
||||||
|
if (entry_func)
|
||||||
|
{
|
||||||
|
/* Depending on d3dcompiler version, either the first or last is
|
||||||
|
* selected. */
|
||||||
|
hlsl_fixme(&ctx, &decl->loc, "Multiple valid entry point definitions.");
|
||||||
|
}
|
||||||
entry_func = decl;
|
entry_func = decl;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user