-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
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.