vkd3d-shader/hlsl: Support semantics for array types.

This commit is contained in:
Francisco Casas
2023-04-05 12:07:37 -04:00
committed by Alexandre Julliard
parent a488889494
commit edc72fdefc
Notes: Alexandre Julliard 2023-05-01 22:24:44 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Zebediah Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/148
4 changed files with 133 additions and 92 deletions

View File

@@ -4753,7 +4753,7 @@ var_identifier:
colon_attribute:
%empty
{
$$.semantic.name = NULL;
$$.semantic = (struct hlsl_semantic){0};
$$.reg_reservation.reg_type = 0;
$$.reg_reservation.offset_type = 0;
}
@@ -4765,12 +4765,12 @@ colon_attribute:
}
| register_opt
{
$$.semantic.name = NULL;
$$.semantic = (struct hlsl_semantic){0};
$$.reg_reservation = $1;
}
| packoffset_opt
{
$$.semantic.name = NULL;
$$.semantic = (struct hlsl_semantic){0};
$$.reg_reservation = $1;
}
@@ -4783,6 +4783,7 @@ semantic:
;
$$.name = $2;
$$.index = atoi(p);
$$.reported_missing = false;
*p = 0;
}