-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DX12 backend panics when window is resized #15077
Comments
"Resize panics on DX12" wgpu issue in the past also suggests you cannot retain references to surface during resize: gfx-rs/wgpu#3967 (comment) |
Reported in upstream repo: gfx-rs/wgpu#6235 |
Based on gfx-rs/wgpu#6235 (comment), we should drop the surfaces before resizing. Can you revive your PR? Don't add any comments about it being DX12 specific though. |
Thanks, reopened #15087. |
# Objective - Fixes #15077 ## Solution - Clears `ViewTargetAttachments` resource every frame before `create_surfaces` system instead, which was previously done after `extract_windows`. ## Testing - Confirmed that examples no longer panic on window resizing with DX12 backend. - `screenshot` example keeps working after this change.
) # Objective - Fixes bevyengine#15077 ## Solution - Clears `ViewTargetAttachments` resource every frame before `create_surfaces` system instead, which was previously done after `extract_windows`. ## Testing - Confirmed that examples no longer panic on window resizing with DX12 backend. - `screenshot` example keeps working after this change.
Bevy version
master
[Optional] Relevant system information
What you did
Run any example with DX12 backend and resize the window.
What went wrong
Terminated with a panic.
Additional information
wgpu examples (v22.1.0 and master) don't crash when resizing window.
The text was updated successfully, but these errors were encountered: