mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Support semantics for array types.
This commit is contained in:
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
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user