2 Mar
2023
2 Mar
'23
8:50 p.m.
On Thu Mar 2 00:00:00 2023 +0000, Zebediah Figura wrote:
No, I mean both side-by-side, e.g. struct hlsl_reg_reservation { char reg_type; uint32_t reg_index; char packoffset_type; uint32_t packoffset_index; }; (where packoffset_type could alternatively be a boolean?) I am currently more inclined to keep them separated. Because this way we won't have to worry about "merging" two or more `struct hlsl_reg_reservations` (say, one that was returned by `parse_reg_reservation()` and other returned by `parse_packoffset()`) in the parser when we add support for parsing multiple register() and packoffset()s for the same cbuffer element.
-- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/106#note_26036