[PATCH 3/5] d3dcompiler: Respect arrays in struct fields.
Zebediah Figura
z.figura12 at gmail.com
Wed Apr 29 21:54:41 CDT 2020
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
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 47889704edc..a33ea588ccf 100644
--- a/dlls/d3dcompiler_43/hlsl.y
+++ b/dlls/d3dcompiler_43/hlsl.y
@@ -820,7 +820,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;
--
2.26.2
More information about the wine-devel
mailing list