Zebediah Figura : d3dcompiler: Respect arrays in struct fields.
Module: wine Branch: master Commit: aa333c63fca62e1958e341829d88897487c571f2 URL: https://source.winehq.org/git/wine.git/?a=commit;h=aa333c63fca62e1958e341829... Author: Zebediah Figura <z.figura12(a)gmail.com> Date: Wed Apr 29 21:54:41 2020 -0500 d3dcompiler: Respect arrays in struct fields. Signed-off-by: Zebediah Figura <zfigura(a)codeweavers.com> Signed-off-by: Matteo Bruni <mbruni(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/d3dcompiler_43/hlsl.y | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dlls/d3dcompiler_43/hlsl.y b/dlls/d3dcompiler_43/hlsl.y index 3b812de410..a628d8b20a 100644 --- a/dlls/d3dcompiler_43/hlsl.y +++ b/dlls/d3dcompiler_43/hlsl.y @@ -789,7 +789,10 @@ static struct list *gen_struct_fields(struct hlsl_type *type, DWORD modifiers, s d3dcompiler_free(v); return list; } - field->type = type; + if (v->array_size) + field->type = new_array_type(type, v->array_size); + else + field->type = type; field->name = v->name; field->modifiers = modifiers; field->semantic = v->semantic;
participants (1)
-
Alexandre Julliard