vkd3d-shader: Separate hlsl_report_message() into helpers for individual log levels.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura
2021-02-12 10:48:54 -06:00
committed by Alexandre Julliard
parent df3773ff7e
commit 28b1d68ce3
4 changed files with 91 additions and 84 deletions

View File

@@ -65,8 +65,7 @@ ANY (.)
{RESERVED4} {
struct hlsl_ctx *ctx = yyget_extra(yyscanner);
hlsl_report_message(ctx, *yylloc, HLSL_LEVEL_ERROR,
"Reserved keyword \"%s\" used.\n", yytext);
hlsl_error(ctx, *yylloc, "Reserved keyword \"%s\" used.\n", yytext);
}
BlendState {return KW_BLENDSTATE; }