mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader: Move the remainder of hlsl_parser_compile() to hlsl_compile_shader().
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
df5e4a865c
commit
8ce33da2ab
@@ -282,7 +282,7 @@ static void update_location(struct hlsl_ctx *ctx, YYLTYPE *lloc)
|
||||
ctx->location.column += yyget_leng(ctx->scanner);
|
||||
}
|
||||
|
||||
int hlsl_lexer_compile(struct hlsl_ctx *ctx, const char *text, const char *entrypoint)
|
||||
int hlsl_lexer_compile(struct hlsl_ctx *ctx, const char *text)
|
||||
{
|
||||
YY_BUFFER_STATE buffer;
|
||||
int ret;
|
||||
@@ -291,7 +291,7 @@ int hlsl_lexer_compile(struct hlsl_ctx *ctx, const char *text, const char *entry
|
||||
buffer = yy_scan_string(text, ctx->scanner);
|
||||
yy_switch_to_buffer(buffer, ctx->scanner);
|
||||
|
||||
ret = hlsl_parser_compile(ctx, entrypoint);
|
||||
ret = hlsl_yyparse(ctx->scanner, ctx);
|
||||
|
||||
yy_delete_buffer(buffer, ctx->scanner);
|
||||
yylex_destroy(ctx->scanner);
|
||||
|
||||
Reference in New Issue
Block a user