mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader: Add a hlsl_ namespace prefix to common functions.
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:
committed by
Alexandre Julliard
parent
0da1401d3d
commit
7c5bd7c776
@@ -172,10 +172,9 @@ row_major {return KW_ROW_MAJOR; }
|
||||
|
||||
{IDENTIFIER} {
|
||||
hlsl_lval.name = vkd3d_strdup(yytext);
|
||||
if (get_variable(hlsl_ctx.cur_scope, yytext)
|
||||
|| find_function(yytext))
|
||||
if (hlsl_get_var(hlsl_ctx.cur_scope, yytext) || hlsl_get_function(yytext))
|
||||
return VAR_IDENTIFIER;
|
||||
else if (get_type(hlsl_ctx.cur_scope, yytext, TRUE))
|
||||
else if (hlsl_get_type(hlsl_ctx.cur_scope, yytext, TRUE))
|
||||
return TYPE_IDENTIFIER;
|
||||
else
|
||||
return NEW_IDENTIFIER;
|
||||
|
||||
Reference in New Issue
Block a user