Class RendererAbstract

Hierarchy (view full)

Accessors

Methods

  • Returns a shared GPUDevice, initialising it on the first call. All renderers share the same adapter and device to avoid exhausting browser GPU resource limits. The device is requested with timestamp-query enabled if the adapter supports it, so profiling-capable renderers (e.g. DmdRenderer) can use that feature without a separate device request.

    Returns Promise<GPUDevice>

  • Clear the cached adapter and device. Call this during cleanup or in tests.

    Returns void

  • Parameters

    • frameData: ImageData
    • Optional options: unknown

    Returns Promise<void | ImageData>