Aug. 18, 2026
2:34 p.m.
Did you investigate Elizabeth's swapchain rotate index? I'll try to look into it myself later today. As I understand it the idea is like
I think that could work in principle, although it would depend on wined3d_swapchain_resize_buffers() not being possible to call while any swapchain views exist. I think that's true, but we'd want to make sure.
``` swapchain->rotate_count++; if (swapchain->rotate_count == swapchain->back_buffer_count) swapchain->rotate_count = 0; ```
For what it's worth, in dxgi's struct d3d12_swapchain, the equivalent field is called "current_buffer_index". -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10567#note_149165