napari_track_edit._wgpu_setup
wgpu instance configuration, applied before fastplotlib/pygfx create an instance.
Attributes
Functions
|
Restrict the wgpu instance to Vulkan on Linux. |
Module Contents
- napari_track_edit._wgpu_setup.logger
- napari_track_edit._wgpu_setup.configure_wgpu_backend() None
Restrict the wgpu instance to Vulkan on Linux.
wgpu probes every backend when requesting an adapter. On Linux the GLES/EGL probe calls eglMakeCurrent, which returns BadAccess once napari’s Qt/vispy OpenGL context is current; wgpu-native then panics in non-unwinding FFI code and aborts the whole process. Mesa ships the lavapipe ICD as a software fallback, so Vulkan-only is safe.
Set NAPARI_TRACK_EDIT_WGPU_BACKENDS (comma-separated, e.g. “All”) to override.