mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-26 11:50:59 +00:00
c3e381a76a
* Previously for post VS data we could maintain the index buffer by just doing the stream-out/transform feedback for a point list with each unique index. To maintain the index buffer we padded out any gaps in the indices with a single value, so that we could just shift the indices. This causes severe problems though if the indices start at 0 and contain an invalid value like 0xcccccccc - we'd allocate a huge array and perform a massively wasteful streamout. * Instead, we just stream out on the tightly packed list of unique indices, then remap each 'real' index to where it is in the tightly packed output buffer.