You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
When present mode is changed and the swap chain recreated on the Dx12 backend the following error is produced:
DXGI ERROR: IDXGISwapChain::ResizeBuffers: Cannot add or remove the DXGI_SWAP_CHAIN_FLAG_ALLOW_TEARING flag using ResizeBuffers. [ MISCELLANEOUS ERROR #285: ]
Description
When present mode is changed and the swap chain recreated on the Dx12 backend the following error is produced:
This causes a panic:
ResizeBuffers
is called byconfigure_swapchain
https://github.com/gfx-rs/gfx/blob/84e02f96149207b1bafecb1924b14315930c98ee/src/backend/dx12/src/window.rs#L170Additionally,
configure_swapchain
ignoresconfig.present_mode
when determining if the swapchain needs to be recreated:So the bug is only observed after changing the present mode and then resizing and otherwise changing the present mode silently does nothing.
This same behavior appears to be present in the Dx11 backend code.
Repro steps
TODO
Expected vs observed behavior
Unexpected error when changing the present mode on Dx12 that doesn't occur on the other backends (i.e. Vulkan)
Extra materials
Platform
Dx12 backend
wgpu-rs
7486bdad64bb5d17b709ecccb41e063469efff88
wgpu-core
53eab747a32414232be45d47cae8a43a369395d0
gfx
27a1dae3796d33d23812f2bb8c7e3b5aea18b521
The text was updated successfully, but these errors were encountered: