Documentation
    Preparing search index...

    Function registerWebglRenderer

    • Registers the WebGL 2 backend so renderer: "auto" and renderer: "webgl2" can find it (§62), and returns the registry it went into.

      Call it once, before the selection. Pass a registry to keep the registration out of the shared one — the discipline the integration tests use so that one test's backends are invisible to the next.

      Parameters

      Returns RendererRegistry

      FourError RENDERER_INITIALIZATION_FAILED if a "webgl2" renderer is already registered in that registry (§62: selection must not depend on import order).