mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d-shader/hlsl: Add a more specific error for missing compatible fn. definitions.
This commit is contained in:
parent
f08c0a7c03
commit
7f009f59ce
Notes:
Alexandre Julliard
2023-02-20 22:45:40 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Zebediah Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/99
@ -3194,6 +3194,12 @@ static struct list *add_call(struct hlsl_ctx *ctx, const char *name,
|
||||
if (!intrinsic->handler(ctx, args, loc))
|
||||
goto fail;
|
||||
}
|
||||
else if (rb_get(&ctx->functions, name))
|
||||
{
|
||||
hlsl_error(ctx, loc, VKD3D_SHADER_ERROR_HLSL_NOT_DEFINED, "No compatible %u parameter declaration for \"%s\" found.",
|
||||
args->args_count, name);
|
||||
goto fail;
|
||||
}
|
||||
else
|
||||
{
|
||||
hlsl_error(ctx, loc, VKD3D_SHADER_ERROR_HLSL_NOT_DEFINED, "Function \"%s\" is not defined.", name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user