webatintel / aquarium

BSD 3-Clause "New" or "Revised" License
26 stars 7 forks source link

Refactor D3D12 buffer updating #59

Closed JiangYizhou closed 4 years ago

JiangYizhou commented 4 years ago

Aquarium D3D12 backend binded staging buffer to pipelines. This not only impact on performance but also blocking from implementing render pass, buffer pool or buffer mapping async. A more optimized method is to copy data to staging buffer firstly and then copy from staging buffer to device buffer.