From 7cd14f97c9300357475e3e461fa57cbb7ec5bfec Mon Sep 17 00:00:00 2001 From: crowlKats <13135287+crowlKats@users.noreply.github.com> Date: Mon, 1 Mar 2021 11:31:13 +0100 Subject: feat: WebGPU API (#7977) Co-authored-by: Luca Casonato --- cli/dts/lib.deno.window.d.ts | 7 +++++++ cli/dts/lib.deno.worker.d.ts | 8 ++++++++ 2 files changed, 15 insertions(+) (limited to 'cli/dts') diff --git a/cli/dts/lib.deno.window.d.ts b/cli/dts/lib.deno.window.d.ts index 721c89af2..2d46e5fe0 100644 --- a/cli/dts/lib.deno.window.d.ts +++ b/cli/dts/lib.deno.window.d.ts @@ -3,6 +3,7 @@ /// /// /// +/// /// declare class Window extends EventTarget { @@ -17,12 +18,18 @@ declare class Window extends EventTarget { confirm: (message?: string) => boolean; prompt: (message?: string, defaultValue?: string) => string | null; Deno: typeof Deno; + navigator: Navigator; } declare var window: Window & typeof globalThis; declare var self: Window & typeof globalThis; declare var onload: ((this: Window, ev: Event) => any) | null; declare var onunload: ((this: Window, ev: Event) => any) | null; +declare var navigator: Navigator; + +declare interface Navigator { + readonly gpu: GPU; +} /** * Shows the given message and waits for the enter key pressed. diff --git a/cli/dts/lib.deno.worker.d.ts b/cli/dts/lib.deno.worker.d.ts index a8f42f336..93549ecd5 100644 --- a/cli/dts/lib.deno.worker.d.ts +++ b/cli/dts/lib.deno.worker.d.ts @@ -3,6 +3,7 @@ /// /// /// +/// /// declare class WorkerGlobalScope { @@ -29,6 +30,13 @@ declare class WorkerGlobalScope { close: () => void; postMessage: (message: any) => void; Deno: typeof Deno; + navigator: WorkerNavigator; +} + +declare var navigator: WorkerNavigator; + +declare interface WorkerNavigator { + readonly gpu: GPU; } declare class DedicatedWorkerGlobalScope extends WorkerGlobalScope { -- cgit v1.2.3