pub fn gpu_adapter_present() -> boolExpand description
Whether a usable GPU compute adapter exists, probed once and cached.
§Behaviour
- Without the
gpufeature, or on Android, this isfalsewith no probe attempted. - Otherwise it asks
wgpufor an adapter, once.falseis a normal outcome — headless CI, a container, a machine with no discrete GPU — and is not an error. Nothing here panics or returnsErr.
§Returns
true only if a GPU kernel could actually be dispatched.