pub enum GpuUnavailable {
NoAdapter(String),
NoDevice(String),
}Expand description
Why we could not get a GPU on this machine.
This is a plain “no usable GPU” signal, not a rich diagnostic — callers that
see it should stop trying the GPU and take the CPU path (that is exactly what
crate::Executor does). The two ways it happens map to the two async wgpu
steps that can fail with no hardware behind them.
Variants§
NoAdapter(String)
wgpu found no adapter matching our request — i.e. no GPU (or no driver
wgpu can talk to) is present at all. On Termux this is the common
“no Vulkan ICD installed / immature Mali driver” case. String because
wgpu’s own RequestAdapterError is not 'static-friendly to store; we
keep its message for the log, not for matching on.
NoDevice(String)
An adapter existed but opening a logical device on it failed (driver in a bad state, limits we asked for unsupported, and so on).
Trait Implementations§
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()