/** * Gets the WebGPU entry point for the browsing context that owns the canvas. * * A GPU device used to configure a canvas must be created by the canvas's owning context. In * WebKit, configuring a canvas with a device from another context terminates the page instead of * throwing, which also prevents fallback to WebGL2. If the canvas has an associated window, this * deliberately returns that window's `navigator.gpu` even when it is undefined. * * Canvases without an associated window, such as an `OffscreenCanvas` in a worker, a canvas * created using `createHTMLDocument()` or one supplied by a headless host, use the WebGPU entry * point of the current window, or of the global scope when there is no window. * * @param {HTMLCanvasElement} canvas - The canvas the device will draw to. * @returns {GPU|undefined} The WebGPU entry point to use for the canvas, if available. */ export function getCanvasNavigatorGpu(canvas: HTMLCanvasElement): GPU | undefined;