On Tue Oct 25 11:40:43 2022 +0000, Henri Verbeet wrote:
Have you seen DXBC files with unaligned chunks in the wild? I have
never, it seems that all chunks are always aligned to four bytes. So I would suggest to enforce this behavior `parse_dxbc()` and avoid a copy here. Yes, this seems suspicious. Even if this does (legitimately) happen in practice, it seems preferable to only make this kind of copy when actually needed.
177 of 568 in my Cyberpunk shader collection are misaligned, and some I built are too, but it's uncommon enough to justify only copying when needed.