mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Support case-insensitive lookup for builtin 'dword' type.
This commit is contained in:
committed by
Alexandre Julliard
parent
5f904e5022
commit
891217664a
Notes:
Alexandre Julliard
2023-02-23 22:20:00 +01:00
Approved-by: Zebediah Figura (@zfigura) Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/101
@@ -181,7 +181,7 @@ row_major {return KW_ROW_MAJOR; }
|
||||
yylval->name = hlsl_strdup(ctx, yytext);
|
||||
if (hlsl_get_var(ctx->cur_scope, yytext) || hlsl_get_function(ctx, yytext))
|
||||
return VAR_IDENTIFIER;
|
||||
else if (hlsl_get_type(ctx->cur_scope, yytext, true))
|
||||
else if (hlsl_get_type(ctx->cur_scope, yytext, true, true))
|
||||
return TYPE_IDENTIFIER;
|
||||
else
|
||||
return NEW_IDENTIFIER;
|
||||
|
||||
Reference in New Issue
Block a user