diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2024-01-22 02:21:45 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-21 21:51:45 +0100 |
commit | 1b9f0cb452e672c187233de23cd74c7f8a3f773b (patch) | |
tree | 5221271f4461a4e8c51f47947b8646ac8d3fddee /cli/tsc/dts/lib.deno_webgpu.d.ts | |
parent | 692738232b0668c35fcc572cb651fe543a8b87f9 (diff) |
chore: add types for `Deno.UnsafeWindowSurface` (#22010)
Diffstat (limited to 'cli/tsc/dts/lib.deno_webgpu.d.ts')
-rw-r--r-- | cli/tsc/dts/lib.deno_webgpu.d.ts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/cli/tsc/dts/lib.deno_webgpu.d.ts b/cli/tsc/dts/lib.deno_webgpu.d.ts index f83ea5aa5..606c77634 100644 --- a/cli/tsc/dts/lib.deno_webgpu.d.ts +++ b/cli/tsc/dts/lib.deno_webgpu.d.ts @@ -1313,3 +1313,22 @@ declare interface GPUExtent3DDict { /** @category WebGPU */ declare type GPUExtent3D = number[] | GPUExtent3DDict; + +/** @category WebGPU */ +declare type GPUCanvasAlphaMode = "opaque" | "premultiplied"; + +/** @category WebGPU */ +declare interface GPUCanvasConfiguration { + device: GPUDevice; + format: GPUTextureFormat; + usage?: GPUTextureUsageFlags; + viewFormats?: GPUTextureFormat[]; + colorSpace?: "srgb" | "display-p3"; + alphaMode?: GPUCanvasAlphaMode; +} +/** @category WebGPU */ +declare interface GPUCanvasContext { + configure(configuration: GPUCanvasConfiguration): undefined; + unconfigure(): undefined; + getCurrentTexture(): GPUTexture; +} |