Skip to main content

editor_instance_descriptor

Function editor_instance_descriptor 

Source
pub fn editor_instance_descriptor() -> InstanceDescriptor
Expand description

wgpu::InstanceDescriptor for editor surfaces, with the DX12 shader compiler pinned to FXC.

wgpu 29 defaults DX12 to a dynamically-loaded DXC (dxcompiler.dll). When a host process has already loaded its own incompatible dxcompiler.dll - Pro Tools does - wgpu’s DxcCreateInstance returns E_NOINTERFACE and the entire DX12 backend fails to initialise, leaving the instance with zero adapters: a blank editor (egui / built-in) or a panic on the .expect (slint). FXC (d3dcompiler_47.dll, always present on Windows, never conflicts) sidesteps it. wgpu 0.19 (iced) defaulted to FXC, which is why iced was never affected.