Class ShakyRenderer

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>

  • Fire a one-shot impact for "decay" mode. Resets the decay envelope so the shake kicks to full intensity and settles again over decayDuration seconds. Has no visible effect in the continuous modes.

    Returns void