Giovanni Mascellani (@giomasce) commented about libs/vkd3d-shader/fx.c:
+ { + uint32_t type_class : 3; + uint32_t base_type : 5; + uint32_t rows : 3; + uint32_t columns : 3; + uint32_t column_major : 1; + uint32_t unknown : 17; + }; + struct vkd3d_bytecode_buffer *buffer = &fx->unstructured; + uint32_t name_offset, offset, size; + uint32_t elements_count = 0; + union + { + struct fx_4_numeric_type type; + uint32_t data; + } numeric_desc; Could you please `STATIC_ASSERT()` that the size of `numeric_dest` is indeed that of `uint32_t`? Just in case somebody messes up with the bit widths.
-- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/636#note_60431