Skip to main content

shared_context

Function shared_context 

Source
pub fn shared_context() -> Result<&'static GpuContext>
Expand description

Process-wide GpuContext, created on first use and reused thereafter.

ยงErrors

RefloxideError::Gpu when device acquisition failed; the failure is cached so later calls fail fast instead of re-probing adapters.