Skip to content

Resize error on DX12 backend in wgpu 0.17 #3967

@mikeny07

Description

@mikeny07

Description

when attempting to run wgpu examples using the DX12 backend in version 0.17 of wgpu, I encountered the following error:

[2023-07-23T20:02:29Z ERROR wgpu_hal::dx12] ResizeBuffers failed: 0x887A0001
[2023-07-23T20:02:29Z ERROR wgpu_core::device::global] surface configuration failed: window is in use
thread 'main' panicked at 'Error in Surface::configure: Validation Error

Caused by:
Invalid surface
', C:\Users****.cargo\registry\src\index.crates.io-6f17d22bba15001f\wgpu-0.17.0\src\backend\direct.rs:771:18

Repro steps

For example, in the "hello-triangle" example, simply replacing

let instance = wgpu::Instance::default();

by

 let instance = wgpu::Instance::new(wgpu::InstanceDescriptor {
        backends: wgpu::Backends::DX12,
        dx12_shader_compiler: Default::default(),
 });

this will generate the error when resizing the output window.

Expected vs observed behavior

This error only occurs in wgpu 0.17, while wgpu <= 0.16 never gives this error.

Platform

Windows 11, RTX 3060, wgpu 0.17.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: wsiIssues with swapchain management or windowingbackend: dx12Issues with DX12 or DXGItype: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions