Does wgpu_hal::dx12
properly recognize added and removed adapters?
#6038
Labels
api: dx12
Issues with DX12 or DXGI
In Direct3D 12, it seems that the system is scanned for available adapters only when you create an
IDXGIFactory
(docs):wgpu_hal::dx12::Instance::factory
is theIDXGIFactory
that we use for all enumeration. This implies that ifwgpu_core
wants to see new devices or be informed of devices going away, it needs to create an entirely newApi::Instance
, which is not generally the way we expect to use thewgpu_hal
API.I'm not a Windows dev, but it seems to me that we should probably be creating a fresh
IDXGIFactory
every time we callwgpu_hal::Instance::enumerate_adaptors
.The text was updated successfully, but these errors were encountered: