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
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user