Luxar Viewer API Documentation - v2026.10.22
    Preparing search index...

    Module scene/scene-manager/render-pipeline/renderer-setup

    Renderer-construction helpers extracted from SceneManager.

    Five concerns live here:

    • configureRendererBackend — point the backend-dependent rendering paths (texture layout, ordering applies, RenderObject eviction, element-texture row uploads) at a renderer; shared with layer mode.
    • selectBackend (re-exported from backend-selection.ts) — apply the URL-param / env-var / platform-policy precedence ladder.
    • createWebGLRenderer — construct a THREE.WebGLRenderer from the configured WebGL2 context, build the renderer- capabilities snapshot, configure HDR.
    • requestWebGPUDevice — consume the early entry's high-limit core adapter / device request (or start one, see early-device-request.ts, which also applies the platform policy's adapter-vendor check), start the lazy TSL chunk fetch, and decide the WebGL fallback.
    • createWebGPURenderer — consume a bootstrap request once (or start a fresh one), construct and init() a WebGPURenderer, and build the capabilities snapshot.

    Each create*Renderer function returns { renderer, capabilities }. Host (SceneManager) is responsible for the post-construction wiring (materialManager.setCaps, resizer initial-size, setClearColor) so the helpers stay focused on graphics-API negotiation.

    CreatedRenderer
    CreateWebGLOptions
    CreateWebGPUOptions
    UncapturedGpuErrorInfo
    WebGPUDeviceRequest
    CreateWebGPUResult
    GPU_ERROR_REPEAT_LIMIT
    GPU_ERROR_DISTINCT_LIMIT
    configureRendererBackend
    createWebGLRenderer
    requestWebGPUDevice
    createUncapturedGpuErrorHandler
    createWebGPURenderer
    selectBackend → selectBackend