vkd3d-shader/hlsl: Support case-insensitive lookup for builtin 'dword' type.

This commit is contained in:
Nikolay Sivov
2023-02-19 01:44:20 +01:00
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
6 changed files with 83 additions and 9 deletions

View File

@@ -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;