gfx-rs / gfx

[maintenance mode] A low-overhead Vulkan-like GPU API for Rust.
http://gfx-rs.github.io/
Apache License 2.0
5.35k stars 549 forks source link

dx12: Freely use swapchain images #2139

Open msiglreith opened 6 years ago

msiglreith commented 6 years ago

D3D12 restricts usage of swapchain images. Users are only allowed to access the currently acquired backbuffer image and only present in order. Doing something like Acquire n+1 - Submit n - Present n - Acquire n+2 - Submit n+1 ... will fail.

kvark commented 6 years ago

Somewhat awkwardly, isn't this one solved by exposing maximum image count = 1 for swapchains?