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.