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

@@ -4711,7 +4711,7 @@ type_no_void:
}
| TYPE_IDENTIFIER
{
$$ = hlsl_get_type(ctx->cur_scope, $1, true);
$$ = hlsl_get_type(ctx->cur_scope, $1, true, true);
if ($$->is_minimum_precision)
{
if (ctx->profile->major_version < 4)
@@ -4728,7 +4728,7 @@ type_no_void:
}
| KW_STRUCT TYPE_IDENTIFIER
{
$$ = hlsl_get_type(ctx->cur_scope, $2, true);
$$ = hlsl_get_type(ctx->cur_scope, $2, true, true);
if ($$->type != HLSL_CLASS_STRUCT)
hlsl_error(ctx, &@1, VKD3D_SHADER_ERROR_HLSL_REDEFINED, "\"%s\" redefined as a structure.", $2);
vkd3d_free($2);