Skip to content

Fix D3D12 Surface Leak#4106

Merged
cwfitzgerald merged 2 commits into
gfx-rs:trunkfrom
cwfitzgerald:dx12-surface-leak
Sep 5, 2023
Merged

Fix D3D12 Surface Leak#4106
cwfitzgerald merged 2 commits into
gfx-rs:trunkfrom
cwfitzgerald:dx12-surface-leak

Conversation

@cwfitzgerald

Copy link
Copy Markdown
Member

Checklist

  • Run cargo clippy.
  • Run cargo clippy --target wasm32-unknown-unknown if applicable.
  • Add change to CHANGELOG.md. See simple instructions inside file.

Connections

Closes #3967
Found #4105

Description

Re-defines the wgpu-hal contract a bit, allowing proper destruction of resources before swap chain resize.

@Elabajaba Elabajaba left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and it works for me on amd+windows11+dx12 and vulkan.

Comment thread wgpu-hal/src/vulkan/instance.rs Outdated
Comment thread wgpu-hal/src/vulkan/instance.rs Outdated

@jimblandy jimblandy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Some suggestions and typos:

Comment thread wgpu-hal/src/vulkan/instance.rs Outdated
Comment thread wgpu-hal/src/dx12/mod.rs Outdated
@cwfitzgerald cwfitzgerald enabled auto-merge (squash) September 5, 2023 17:53
@cwfitzgerald cwfitzgerald added the PR: needs back-porting PR with a fix that needs to land on crates label Sep 5, 2023
@cwfitzgerald cwfitzgerald merged commit 4235b0d into gfx-rs:trunk Sep 5, 2023
bradwerth pushed a commit to bradwerth/wgpu that referenced this pull request Sep 19, 2023
cwfitzgerald added a commit to cwfitzgerald/wgpu that referenced this pull request Sep 27, 2023
@cwfitzgerald cwfitzgerald removed the PR: needs back-porting PR with a fix that needs to land on crates label Sep 27, 2023
cwfitzgerald added a commit that referenced this pull request Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resize error on DX12 backend in wgpu 0.17

3 participants