Skip to main content

create_backend

Function create_backend 

Source
pub fn create_backend(
    backend_type: BackendType,
    width: u32,
    height: u32,
) -> Result<Box<dyn RenderBackend>, RenderError>
Expand description

Create a backend instance for the given type