pub fn new_rendering_backend() -> Box<dyn RenderingBackend>
dep_miniquad
The same as
if metal { Box::new(MetalContext::new()) } else { Box::new(GlContext::new()) };
but under #cfg gate to avoid MetalContext on non-apple platforms