charturbo - v0.1.0
    Preparing search index...

    Class CharturboDevice

    Index

    Backend every engine of this device renders with

    • get engineCount(): number

      Engines currently alive on this device (0 after dispose()).

      Returns number

    • get pipelineSets(): number

      Pipeline sets compiled (one per surface format, however many engines).

      Returns number

    • Engine backend on canvas (used by Charturbo.create(canvas, { device })). Throws a CharturboInitError when the canvas cannot be attached, or an Error after dispose().

      Parameters

      • canvas: HTMLCanvasElement
      • options: { clusterCount: number; edgeCount: number; nodeCount: number; seed: number }

      Returns WasmCharturboEngineBackend

    • Releases this handle (see the module docs: live engines keep the GPU device until disposed).

      Returns void