browser-image
    Preparing search index...
    • Creates a WebGL2 renderer, or returns null when the browser cannot run one (no WebGL2, or no rendering to float textures), so callers can fall back to the pipeline's run.

      Parameters

      Returns GpuRenderer | null

      const gpu = createGpuRenderer({ canvas: view });
      if (gpu) {
      gpu.setImage(img);
      slider.oninput = () => gpu.render(current()); // full size, every move
      }