DownloadFromTexture and DownloadFromBuffer are now async and go inside a copy pass.
D3D11 decided to get in the way as usual - there does not appear to be any way to copy from a texture to a buffer on the GPU timeline. The best I could do was create a staging texture inside of the transfer buffer object, which gets mapped on the GetTransferData call. It's ugly but it works. Hopefully this workaround doesn't disrupt the transfer buffer direct mapping API I want to create.
DownloadFromTexture and DownloadFromBuffer are now async and go inside a copy pass.
D3D11 decided to get in the way as usual - there does not appear to be any way to copy from a texture to a buffer on the GPU timeline. The best I could do was create a staging texture inside of the transfer buffer object, which gets mapped on the GetTransferData call. It's ugly but it works. Hopefully this workaround doesn't disrupt the transfer buffer direct mapping API I want to create.
Fixes #9