initialize_adapter_from_env_or_default
ignores backend_bits
if WGPU_ADAPTER_NAME
is not set
#3792
Labels
area: api
Issues related to API surface
help required
We need community help to make this happen.
type: bug
Something isn't working
Description
initialize_adapter_from_env_or_default
ignoresWGPU_BACKEND
ifWGPU_ADAPTER_NAME
is not set.Repro steps
I have an Intel and a discrete Nvidia GPU. When I run this with env variables like:
It prints:
Expected vs observed behavior
Despite setting the backend to DX12, wgpu uses Vulkan.
Extra materials
This happens because
initialize_adapter_from_env_or_default
callsinitialize_adapter_from_env
, which returnsNone
if WGPU_ADAPTER_NAME is not set:Now
initialize_adapter_from_env_or_default
ignores the backend (but does respect power preference):Platform
Windows 10, wgpu 0.16.
The text was updated successfully, but these errors were encountered: