vkd3d-shader/dxbc: Set the "elements_capacity" field as well in shader_parse_signature().

Leaving it as 0 mostly ends up doing the right thing in practice, but isn't
quite right.
This commit is contained in:
Henri Verbeet
2025-02-11 16:46:10 +01:00
parent 2feb3a3bba
commit 3bcdb85ddc
Notes: Henri Verbeet 2025-02-24 16:26:29 +01:00
Approved-by: Conor McCarthy (@cmccarthy)
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1371

View File

@@ -477,6 +477,7 @@ static int shader_parse_signature(const struct vkd3d_shader_dxbc_section_desc *s
}
s->elements = e;
s->elements_capacity = count;
s->element_count = count;
return VKD3D_OK;