Documentation
    Preparing search index...

    Function resolveRenderer

    • Resolves selection against the shared registry (or registry) and returns an initialized renderer (§45, §62).

      registerWebglRenderer();
      const renderer = await resolveRenderer("auto", { canvas });

      See RendererRegistry.resolve for the selection rule; this function adds only the "nothing has registered" case, which is the mistake worth its own message.

      Parameters

      Returns Promise<Renderer>

      FourError RENDERER_INITIALIZATION_FAILED (§89) when no backend is registered, when a named backend is not registered or reports itself unusable, or when "auto" exhausts §62's order.