AutoResizeCanvasParams: {
    canvas: HTMLCanvasElement;
    device: GPUDevice;
    onResize?: (canvas: HTMLCanvasElement) => void;
}

Type declaration

  • canvas: HTMLCanvasElement
  • device: GPUDevice
  • OptionalonResize?: (canvas: HTMLCanvasElement) => void