You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into a situation where WebGPU adapter creation fails and I want to retry with WebGL (Chrome Linux 121 advertises WebGPU support but can't create adapters -.-)
Turns out though it's actually not easily possible to programmatically determine that this was the error: If the instance is created with both WebGPU & WebGL enabled and adapter creation fails subsequently,it might mean that either of the context type (webgpu or wgpu-core) was picked and failed. Only in the case of a webgpu-instance do I want to retry instance creation.
One hacky way to check for this is the result of as_hal, but this method is only available when wgpu_core compilation is enabled, and in the context I'm in (egui's guts) I don't know this.
Proposing to add this simple method on wgpu::Instance : is_webgpu_instance() -> bool
The text was updated successfully, but these errors were encountered:
…GL was enabled. (#3895)
* Filed this in relation to the changes here
gfx-rs/wgpu#5142
* Fixesrerun-io/rerun#4915
Draft until fully confirmed this works on Linux Chrome
I ran into a situation where WebGPU adapter creation fails and I want to retry with WebGL (Chrome Linux 121 advertises WebGPU support but can't create adapters -.-)
Turns out though it's actually not easily possible to programmatically determine that this was the error: If the instance is created with both WebGPU & WebGL enabled and adapter creation fails subsequently,it might mean that either of the context type (webgpu or wgpu-core) was picked and failed. Only in the case of a webgpu-instance do I want to retry instance creation.
One hacky way to check for this is the result of
as_hal
, but this method is only available when wgpu_core compilation is enabled, and in the context I'm in (egui's guts) I don't know this.Proposing to add this simple method on
wgpu::Instance
:is_webgpu_instance() -> bool
The text was updated successfully, but these errors were encountered: