Skip to main content

backend_available

Function backend_available 

Source
pub fn backend_available(backend: Backend) -> bool
Expand description

Whether a backend request can be satisfied by some registered device. This is the probe to turn Backend::Vulkan on a machine without Vulkan into a clear error instead of a failed model load. Do not race this query with init_backends or init_backends_default.