On Thu Nov 9 20:04:06 2023 +0000, Nikolay Sivov wrote:
I think this could also be avoided. What I'll probably end up with is two buffers, one for structured part - (cbuffers, variables, etc), and another for unstructured part for strings, default values, and so one. I think shader blobs also go in there.
I say this mostly because, in the current form, it's not obvious that we need to do anything that complex. I.e. we can write sections one at a time, recording counts and sizes as we do so, and then go back and write those counts and sizes in the header. Maybe further logic will complicate that approach, though...