Class ChromaKeyRenderer

Hierarchy (view full)

Constructors

Properties

renderFrame: ((frameData, options?) => Promise<ImageData>)

Type declaration

    • (frameData, options?): Promise<ImageData>
    • Parameters

      • frameData: ImageData
      • Optional options: never

      Returns Promise<ImageData>

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>