I have a compute shader that writes to a structured buffer. I would like to read that buffer back on the CPU asynchronously.
I tried using RHILockStructuredBuffer, however that’s slow and blocks the thread it is on. I would like to queue the copy asynchronously at the end of my tick and access the data at the start of the next tick. It looks like I can do that with vertex buffers in 4.22 using CopyToStagingArea and a WriteGPUFence. Is there a way to do it with structured buffers?
Does anyone have a better idea?