diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index dea904406..7bec8afdd 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -856,6 +856,11 @@ interface GPUExtent3DDict { width: GPUIntegerCoordinate; } +interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase { + colorSpace?: PredefinedColorSpace; + source: HTMLVideoElement | VideoFrame; +} + interface GPUObjectDescriptorBase { label?: string; } @@ -15318,6 +15323,30 @@ interface GPUDevice extends EventTarget, GPUObjectBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue) */ readonly queue: GPUQueue; + /** + * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy) + */ + destroy(): void; + /** + * The **`importExternalTexture()`** method of the GPUDevice interface takes an HTMLVideoElement or a VideoFrame object as an input and returns a GPUExternalTexture wrapper object containing a snapshot of the video that can be used as a frame in GPU rendering operations. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture) + */ + importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture; + /** + * The **`popErrorScope()`** method of the GPUDevice interface pops an existing GPU error scope from the error scope stack (originally pushed using GPUDevice.pushErrorScope()) and returns a Promise that resolves to an object describing the first error captured in the scope, or null if no error occurred. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope) + */ + popErrorScope(): Promise; + /** + * The **`pushErrorScope()`** method of the GPUDevice interface pushes a new GPU error scope onto the device's error scope stack, allowing you to capture errors of a particular type. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope) + */ + pushErrorScope(filter: GPUErrorFilter): void; addEventListener(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -43863,6 +43892,7 @@ type GPUCanvasAlphaMode = "opaque" | "premultiplied"; type GPUCanvasToneMappingMode = "extended" | "standard"; type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUDeviceLostReason = "destroyed" | "unknown"; +type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; type GPUIndexFormat = "uint16" | "uint32"; type GPULoadOp = "clear" | "load"; type GPUPipelineErrorReason = "internal" | "validation"; diff --git a/baselines/serviceworker.generated.d.ts b/baselines/serviceworker.generated.d.ts index f29228200..1863093c8 100644 --- a/baselines/serviceworker.generated.d.ts +++ b/baselines/serviceworker.generated.d.ts @@ -323,6 +323,10 @@ interface GPUExtent3DDict { width: GPUIntegerCoordinate; } +interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase { + colorSpace?: PredefinedColorSpace; +} + interface GPUObjectDescriptorBase { label?: string; } @@ -4761,6 +4765,30 @@ interface GPUDevice extends EventTarget, GPUObjectBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue) */ readonly queue: GPUQueue; + /** + * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy) + */ + destroy(): void; + /** + * The **`importExternalTexture()`** method of the GPUDevice interface takes an HTMLVideoElement or a VideoFrame object as an input and returns a GPUExternalTexture wrapper object containing a snapshot of the video that can be used as a frame in GPU rendering operations. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture) + */ + importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture; + /** + * The **`popErrorScope()`** method of the GPUDevice interface pops an existing GPU error scope from the error scope stack (originally pushed using GPUDevice.pushErrorScope()) and returns a Promise that resolves to an object describing the first error captured in the scope, or null if no error occurred. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope) + */ + popErrorScope(): Promise; + /** + * The **`pushErrorScope()`** method of the GPUDevice interface pushes a new GPU error scope onto the device's error scope stack, allowing you to capture errors of a particular type. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope) + */ + pushErrorScope(filter: GPUErrorFilter): void; addEventListener(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -12996,6 +13024,7 @@ type GPUCanvasAlphaMode = "opaque" | "premultiplied"; type GPUCanvasToneMappingMode = "extended" | "standard"; type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUDeviceLostReason = "destroyed" | "unknown"; +type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; type GPUIndexFormat = "uint16" | "uint32"; type GPULoadOp = "clear" | "load"; type GPUPipelineErrorReason = "internal" | "validation"; diff --git a/baselines/sharedworker.generated.d.ts b/baselines/sharedworker.generated.d.ts index df87665ed..4d1eb0afe 100644 --- a/baselines/sharedworker.generated.d.ts +++ b/baselines/sharedworker.generated.d.ts @@ -267,6 +267,10 @@ interface GPUExtent3DDict { width: GPUIntegerCoordinate; } +interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase { + colorSpace?: PredefinedColorSpace; +} + interface GPUObjectDescriptorBase { label?: string; } @@ -4444,6 +4448,30 @@ interface GPUDevice extends EventTarget, GPUObjectBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue) */ readonly queue: GPUQueue; + /** + * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy) + */ + destroy(): void; + /** + * The **`importExternalTexture()`** method of the GPUDevice interface takes an HTMLVideoElement or a VideoFrame object as an input and returns a GPUExternalTexture wrapper object containing a snapshot of the video that can be used as a frame in GPU rendering operations. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture) + */ + importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture; + /** + * The **`popErrorScope()`** method of the GPUDevice interface pops an existing GPU error scope from the error scope stack (originally pushed using GPUDevice.pushErrorScope()) and returns a Promise that resolves to an object describing the first error captured in the scope, or null if no error occurred. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope) + */ + popErrorScope(): Promise; + /** + * The **`pushErrorScope()`** method of the GPUDevice interface pushes a new GPU error scope onto the device's error scope stack, allowing you to capture errors of a particular type. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope) + */ + pushErrorScope(filter: GPUErrorFilter): void; addEventListener(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -12668,6 +12696,7 @@ type GPUCanvasAlphaMode = "opaque" | "premultiplied"; type GPUCanvasToneMappingMode = "extended" | "standard"; type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUDeviceLostReason = "destroyed" | "unknown"; +type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; type GPUIndexFormat = "uint16" | "uint32"; type GPULoadOp = "clear" | "load"; type GPUPipelineErrorReason = "internal" | "validation"; diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index ada17993e..82b6b9043 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -853,6 +853,11 @@ interface GPUExtent3DDict { width: GPUIntegerCoordinate; } +interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase { + colorSpace?: PredefinedColorSpace; + source: HTMLVideoElement | VideoFrame; +} + interface GPUObjectDescriptorBase { label?: string; } @@ -15304,6 +15309,30 @@ interface GPUDevice extends EventTarget, GPUObjectBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue) */ readonly queue: GPUQueue; + /** + * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy) + */ + destroy(): void; + /** + * The **`importExternalTexture()`** method of the GPUDevice interface takes an HTMLVideoElement or a VideoFrame object as an input and returns a GPUExternalTexture wrapper object containing a snapshot of the video that can be used as a frame in GPU rendering operations. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture) + */ + importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture; + /** + * The **`popErrorScope()`** method of the GPUDevice interface pops an existing GPU error scope from the error scope stack (originally pushed using GPUDevice.pushErrorScope()) and returns a Promise that resolves to an object describing the first error captured in the scope, or null if no error occurred. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope) + */ + popErrorScope(): Promise; + /** + * The **`pushErrorScope()`** method of the GPUDevice interface pushes a new GPU error scope onto the device's error scope stack, allowing you to capture errors of a particular type. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope) + */ + pushErrorScope(filter: GPUErrorFilter): void; addEventListener(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -43837,6 +43866,7 @@ type GPUCanvasAlphaMode = "opaque" | "premultiplied"; type GPUCanvasToneMappingMode = "extended" | "standard"; type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUDeviceLostReason = "destroyed" | "unknown"; +type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; type GPUIndexFormat = "uint16" | "uint32"; type GPULoadOp = "clear" | "load"; type GPUPipelineErrorReason = "internal" | "validation"; diff --git a/baselines/ts5.5/serviceworker.generated.d.ts b/baselines/ts5.5/serviceworker.generated.d.ts index 014d4f6a0..846b977f8 100644 --- a/baselines/ts5.5/serviceworker.generated.d.ts +++ b/baselines/ts5.5/serviceworker.generated.d.ts @@ -320,6 +320,10 @@ interface GPUExtent3DDict { width: GPUIntegerCoordinate; } +interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase { + colorSpace?: PredefinedColorSpace; +} + interface GPUObjectDescriptorBase { label?: string; } @@ -4758,6 +4762,30 @@ interface GPUDevice extends EventTarget, GPUObjectBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue) */ readonly queue: GPUQueue; + /** + * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy) + */ + destroy(): void; + /** + * The **`importExternalTexture()`** method of the GPUDevice interface takes an HTMLVideoElement or a VideoFrame object as an input and returns a GPUExternalTexture wrapper object containing a snapshot of the video that can be used as a frame in GPU rendering operations. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture) + */ + importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture; + /** + * The **`popErrorScope()`** method of the GPUDevice interface pops an existing GPU error scope from the error scope stack (originally pushed using GPUDevice.pushErrorScope()) and returns a Promise that resolves to an object describing the first error captured in the scope, or null if no error occurred. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope) + */ + popErrorScope(): Promise; + /** + * The **`pushErrorScope()`** method of the GPUDevice interface pushes a new GPU error scope onto the device's error scope stack, allowing you to capture errors of a particular type. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope) + */ + pushErrorScope(filter: GPUErrorFilter): void; addEventListener(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -12993,6 +13021,7 @@ type GPUCanvasAlphaMode = "opaque" | "premultiplied"; type GPUCanvasToneMappingMode = "extended" | "standard"; type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUDeviceLostReason = "destroyed" | "unknown"; +type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; type GPUIndexFormat = "uint16" | "uint32"; type GPULoadOp = "clear" | "load"; type GPUPipelineErrorReason = "internal" | "validation"; diff --git a/baselines/ts5.5/sharedworker.generated.d.ts b/baselines/ts5.5/sharedworker.generated.d.ts index ba3371b39..125e5098b 100644 --- a/baselines/ts5.5/sharedworker.generated.d.ts +++ b/baselines/ts5.5/sharedworker.generated.d.ts @@ -264,6 +264,10 @@ interface GPUExtent3DDict { width: GPUIntegerCoordinate; } +interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase { + colorSpace?: PredefinedColorSpace; +} + interface GPUObjectDescriptorBase { label?: string; } @@ -4441,6 +4445,30 @@ interface GPUDevice extends EventTarget, GPUObjectBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue) */ readonly queue: GPUQueue; + /** + * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy) + */ + destroy(): void; + /** + * The **`importExternalTexture()`** method of the GPUDevice interface takes an HTMLVideoElement or a VideoFrame object as an input and returns a GPUExternalTexture wrapper object containing a snapshot of the video that can be used as a frame in GPU rendering operations. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture) + */ + importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture; + /** + * The **`popErrorScope()`** method of the GPUDevice interface pops an existing GPU error scope from the error scope stack (originally pushed using GPUDevice.pushErrorScope()) and returns a Promise that resolves to an object describing the first error captured in the scope, or null if no error occurred. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope) + */ + popErrorScope(): Promise; + /** + * The **`pushErrorScope()`** method of the GPUDevice interface pushes a new GPU error scope onto the device's error scope stack, allowing you to capture errors of a particular type. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope) + */ + pushErrorScope(filter: GPUErrorFilter): void; addEventListener(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -12665,6 +12693,7 @@ type GPUCanvasAlphaMode = "opaque" | "premultiplied"; type GPUCanvasToneMappingMode = "extended" | "standard"; type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUDeviceLostReason = "destroyed" | "unknown"; +type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; type GPUIndexFormat = "uint16" | "uint32"; type GPULoadOp = "clear" | "load"; type GPUPipelineErrorReason = "internal" | "validation"; diff --git a/baselines/ts5.5/webworker.generated.d.ts b/baselines/ts5.5/webworker.generated.d.ts index 5f6cd214e..307a1bdbd 100644 --- a/baselines/ts5.5/webworker.generated.d.ts +++ b/baselines/ts5.5/webworker.generated.d.ts @@ -410,6 +410,11 @@ interface GPUExtent3DDict { width: GPUIntegerCoordinate; } +interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase { + colorSpace?: PredefinedColorSpace; + source: VideoFrame; +} + interface GPUObjectDescriptorBase { label?: string; } @@ -5460,6 +5465,30 @@ interface GPUDevice extends EventTarget, GPUObjectBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue) */ readonly queue: GPUQueue; + /** + * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy) + */ + destroy(): void; + /** + * The **`importExternalTexture()`** method of the GPUDevice interface takes an HTMLVideoElement or a VideoFrame object as an input and returns a GPUExternalTexture wrapper object containing a snapshot of the video that can be used as a frame in GPU rendering operations. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture) + */ + importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture; + /** + * The **`popErrorScope()`** method of the GPUDevice interface pops an existing GPU error scope from the error scope stack (originally pushed using GPUDevice.pushErrorScope()) and returns a Promise that resolves to an object describing the first error captured in the scope, or null if no error occurred. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope) + */ + popErrorScope(): Promise; + /** + * The **`pushErrorScope()`** method of the GPUDevice interface pushes a new GPU error scope onto the device's error scope stack, allowing you to capture errors of a particular type. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope) + */ + pushErrorScope(filter: GPUErrorFilter): void; addEventListener(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -14679,6 +14708,7 @@ type GPUCanvasAlphaMode = "opaque" | "premultiplied"; type GPUCanvasToneMappingMode = "extended" | "standard"; type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUDeviceLostReason = "destroyed" | "unknown"; +type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; type GPUIndexFormat = "uint16" | "uint32"; type GPULoadOp = "clear" | "load"; type GPUPipelineErrorReason = "internal" | "validation"; diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index 3cb4db034..041c6f867 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -853,6 +853,11 @@ interface GPUExtent3DDict { width: GPUIntegerCoordinate; } +interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase { + colorSpace?: PredefinedColorSpace; + source: HTMLVideoElement | VideoFrame; +} + interface GPUObjectDescriptorBase { label?: string; } @@ -15315,6 +15320,30 @@ interface GPUDevice extends EventTarget, GPUObjectBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue) */ readonly queue: GPUQueue; + /** + * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy) + */ + destroy(): void; + /** + * The **`importExternalTexture()`** method of the GPUDevice interface takes an HTMLVideoElement or a VideoFrame object as an input and returns a GPUExternalTexture wrapper object containing a snapshot of the video that can be used as a frame in GPU rendering operations. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture) + */ + importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture; + /** + * The **`popErrorScope()`** method of the GPUDevice interface pops an existing GPU error scope from the error scope stack (originally pushed using GPUDevice.pushErrorScope()) and returns a Promise that resolves to an object describing the first error captured in the scope, or null if no error occurred. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope) + */ + popErrorScope(): Promise; + /** + * The **`pushErrorScope()`** method of the GPUDevice interface pushes a new GPU error scope onto the device's error scope stack, allowing you to capture errors of a particular type. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope) + */ + pushErrorScope(filter: GPUErrorFilter): void; addEventListener(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -43860,6 +43889,7 @@ type GPUCanvasAlphaMode = "opaque" | "premultiplied"; type GPUCanvasToneMappingMode = "extended" | "standard"; type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUDeviceLostReason = "destroyed" | "unknown"; +type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; type GPUIndexFormat = "uint16" | "uint32"; type GPULoadOp = "clear" | "load"; type GPUPipelineErrorReason = "internal" | "validation"; diff --git a/baselines/ts5.6/serviceworker.generated.d.ts b/baselines/ts5.6/serviceworker.generated.d.ts index 014d4f6a0..846b977f8 100644 --- a/baselines/ts5.6/serviceworker.generated.d.ts +++ b/baselines/ts5.6/serviceworker.generated.d.ts @@ -320,6 +320,10 @@ interface GPUExtent3DDict { width: GPUIntegerCoordinate; } +interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase { + colorSpace?: PredefinedColorSpace; +} + interface GPUObjectDescriptorBase { label?: string; } @@ -4758,6 +4762,30 @@ interface GPUDevice extends EventTarget, GPUObjectBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue) */ readonly queue: GPUQueue; + /** + * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy) + */ + destroy(): void; + /** + * The **`importExternalTexture()`** method of the GPUDevice interface takes an HTMLVideoElement or a VideoFrame object as an input and returns a GPUExternalTexture wrapper object containing a snapshot of the video that can be used as a frame in GPU rendering operations. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture) + */ + importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture; + /** + * The **`popErrorScope()`** method of the GPUDevice interface pops an existing GPU error scope from the error scope stack (originally pushed using GPUDevice.pushErrorScope()) and returns a Promise that resolves to an object describing the first error captured in the scope, or null if no error occurred. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope) + */ + popErrorScope(): Promise; + /** + * The **`pushErrorScope()`** method of the GPUDevice interface pushes a new GPU error scope onto the device's error scope stack, allowing you to capture errors of a particular type. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope) + */ + pushErrorScope(filter: GPUErrorFilter): void; addEventListener(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -12993,6 +13021,7 @@ type GPUCanvasAlphaMode = "opaque" | "premultiplied"; type GPUCanvasToneMappingMode = "extended" | "standard"; type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUDeviceLostReason = "destroyed" | "unknown"; +type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; type GPUIndexFormat = "uint16" | "uint32"; type GPULoadOp = "clear" | "load"; type GPUPipelineErrorReason = "internal" | "validation"; diff --git a/baselines/ts5.6/sharedworker.generated.d.ts b/baselines/ts5.6/sharedworker.generated.d.ts index ba3371b39..125e5098b 100644 --- a/baselines/ts5.6/sharedworker.generated.d.ts +++ b/baselines/ts5.6/sharedworker.generated.d.ts @@ -264,6 +264,10 @@ interface GPUExtent3DDict { width: GPUIntegerCoordinate; } +interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase { + colorSpace?: PredefinedColorSpace; +} + interface GPUObjectDescriptorBase { label?: string; } @@ -4441,6 +4445,30 @@ interface GPUDevice extends EventTarget, GPUObjectBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue) */ readonly queue: GPUQueue; + /** + * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy) + */ + destroy(): void; + /** + * The **`importExternalTexture()`** method of the GPUDevice interface takes an HTMLVideoElement or a VideoFrame object as an input and returns a GPUExternalTexture wrapper object containing a snapshot of the video that can be used as a frame in GPU rendering operations. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture) + */ + importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture; + /** + * The **`popErrorScope()`** method of the GPUDevice interface pops an existing GPU error scope from the error scope stack (originally pushed using GPUDevice.pushErrorScope()) and returns a Promise that resolves to an object describing the first error captured in the scope, or null if no error occurred. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope) + */ + popErrorScope(): Promise; + /** + * The **`pushErrorScope()`** method of the GPUDevice interface pushes a new GPU error scope onto the device's error scope stack, allowing you to capture errors of a particular type. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope) + */ + pushErrorScope(filter: GPUErrorFilter): void; addEventListener(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -12665,6 +12693,7 @@ type GPUCanvasAlphaMode = "opaque" | "premultiplied"; type GPUCanvasToneMappingMode = "extended" | "standard"; type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUDeviceLostReason = "destroyed" | "unknown"; +type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; type GPUIndexFormat = "uint16" | "uint32"; type GPULoadOp = "clear" | "load"; type GPUPipelineErrorReason = "internal" | "validation"; diff --git a/baselines/ts5.6/webworker.generated.d.ts b/baselines/ts5.6/webworker.generated.d.ts index 5f6cd214e..307a1bdbd 100644 --- a/baselines/ts5.6/webworker.generated.d.ts +++ b/baselines/ts5.6/webworker.generated.d.ts @@ -410,6 +410,11 @@ interface GPUExtent3DDict { width: GPUIntegerCoordinate; } +interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase { + colorSpace?: PredefinedColorSpace; + source: VideoFrame; +} + interface GPUObjectDescriptorBase { label?: string; } @@ -5460,6 +5465,30 @@ interface GPUDevice extends EventTarget, GPUObjectBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue) */ readonly queue: GPUQueue; + /** + * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy) + */ + destroy(): void; + /** + * The **`importExternalTexture()`** method of the GPUDevice interface takes an HTMLVideoElement or a VideoFrame object as an input and returns a GPUExternalTexture wrapper object containing a snapshot of the video that can be used as a frame in GPU rendering operations. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture) + */ + importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture; + /** + * The **`popErrorScope()`** method of the GPUDevice interface pops an existing GPU error scope from the error scope stack (originally pushed using GPUDevice.pushErrorScope()) and returns a Promise that resolves to an object describing the first error captured in the scope, or null if no error occurred. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope) + */ + popErrorScope(): Promise; + /** + * The **`pushErrorScope()`** method of the GPUDevice interface pushes a new GPU error scope onto the device's error scope stack, allowing you to capture errors of a particular type. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope) + */ + pushErrorScope(filter: GPUErrorFilter): void; addEventListener(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -14679,6 +14708,7 @@ type GPUCanvasAlphaMode = "opaque" | "premultiplied"; type GPUCanvasToneMappingMode = "extended" | "standard"; type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUDeviceLostReason = "destroyed" | "unknown"; +type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; type GPUIndexFormat = "uint16" | "uint32"; type GPULoadOp = "clear" | "load"; type GPUPipelineErrorReason = "internal" | "validation"; diff --git a/baselines/ts5.9/dom.generated.d.ts b/baselines/ts5.9/dom.generated.d.ts index a6895b554..47567a752 100644 --- a/baselines/ts5.9/dom.generated.d.ts +++ b/baselines/ts5.9/dom.generated.d.ts @@ -853,6 +853,11 @@ interface GPUExtent3DDict { width: GPUIntegerCoordinate; } +interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase { + colorSpace?: PredefinedColorSpace; + source: HTMLVideoElement | VideoFrame; +} + interface GPUObjectDescriptorBase { label?: string; } @@ -15315,6 +15320,30 @@ interface GPUDevice extends EventTarget, GPUObjectBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue) */ readonly queue: GPUQueue; + /** + * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy) + */ + destroy(): void; + /** + * The **`importExternalTexture()`** method of the GPUDevice interface takes an HTMLVideoElement or a VideoFrame object as an input and returns a GPUExternalTexture wrapper object containing a snapshot of the video that can be used as a frame in GPU rendering operations. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture) + */ + importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture; + /** + * The **`popErrorScope()`** method of the GPUDevice interface pops an existing GPU error scope from the error scope stack (originally pushed using GPUDevice.pushErrorScope()) and returns a Promise that resolves to an object describing the first error captured in the scope, or null if no error occurred. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope) + */ + popErrorScope(): Promise; + /** + * The **`pushErrorScope()`** method of the GPUDevice interface pushes a new GPU error scope onto the device's error scope stack, allowing you to capture errors of a particular type. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope) + */ + pushErrorScope(filter: GPUErrorFilter): void; addEventListener(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -43860,6 +43889,7 @@ type GPUCanvasAlphaMode = "opaque" | "premultiplied"; type GPUCanvasToneMappingMode = "extended" | "standard"; type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUDeviceLostReason = "destroyed" | "unknown"; +type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; type GPUIndexFormat = "uint16" | "uint32"; type GPULoadOp = "clear" | "load"; type GPUPipelineErrorReason = "internal" | "validation"; diff --git a/baselines/ts5.9/serviceworker.generated.d.ts b/baselines/ts5.9/serviceworker.generated.d.ts index 31269f101..eed4b5967 100644 --- a/baselines/ts5.9/serviceworker.generated.d.ts +++ b/baselines/ts5.9/serviceworker.generated.d.ts @@ -320,6 +320,10 @@ interface GPUExtent3DDict { width: GPUIntegerCoordinate; } +interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase { + colorSpace?: PredefinedColorSpace; +} + interface GPUObjectDescriptorBase { label?: string; } @@ -4758,6 +4762,30 @@ interface GPUDevice extends EventTarget, GPUObjectBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue) */ readonly queue: GPUQueue; + /** + * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy) + */ + destroy(): void; + /** + * The **`importExternalTexture()`** method of the GPUDevice interface takes an HTMLVideoElement or a VideoFrame object as an input and returns a GPUExternalTexture wrapper object containing a snapshot of the video that can be used as a frame in GPU rendering operations. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture) + */ + importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture; + /** + * The **`popErrorScope()`** method of the GPUDevice interface pops an existing GPU error scope from the error scope stack (originally pushed using GPUDevice.pushErrorScope()) and returns a Promise that resolves to an object describing the first error captured in the scope, or null if no error occurred. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope) + */ + popErrorScope(): Promise; + /** + * The **`pushErrorScope()`** method of the GPUDevice interface pushes a new GPU error scope onto the device's error scope stack, allowing you to capture errors of a particular type. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope) + */ + pushErrorScope(filter: GPUErrorFilter): void; addEventListener(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -12993,6 +13021,7 @@ type GPUCanvasAlphaMode = "opaque" | "premultiplied"; type GPUCanvasToneMappingMode = "extended" | "standard"; type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUDeviceLostReason = "destroyed" | "unknown"; +type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; type GPUIndexFormat = "uint16" | "uint32"; type GPULoadOp = "clear" | "load"; type GPUPipelineErrorReason = "internal" | "validation"; diff --git a/baselines/ts5.9/sharedworker.generated.d.ts b/baselines/ts5.9/sharedworker.generated.d.ts index 9fc23d1d3..bbba957f7 100644 --- a/baselines/ts5.9/sharedworker.generated.d.ts +++ b/baselines/ts5.9/sharedworker.generated.d.ts @@ -264,6 +264,10 @@ interface GPUExtent3DDict { width: GPUIntegerCoordinate; } +interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase { + colorSpace?: PredefinedColorSpace; +} + interface GPUObjectDescriptorBase { label?: string; } @@ -4441,6 +4445,30 @@ interface GPUDevice extends EventTarget, GPUObjectBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue) */ readonly queue: GPUQueue; + /** + * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy) + */ + destroy(): void; + /** + * The **`importExternalTexture()`** method of the GPUDevice interface takes an HTMLVideoElement or a VideoFrame object as an input and returns a GPUExternalTexture wrapper object containing a snapshot of the video that can be used as a frame in GPU rendering operations. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture) + */ + importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture; + /** + * The **`popErrorScope()`** method of the GPUDevice interface pops an existing GPU error scope from the error scope stack (originally pushed using GPUDevice.pushErrorScope()) and returns a Promise that resolves to an object describing the first error captured in the scope, or null if no error occurred. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope) + */ + popErrorScope(): Promise; + /** + * The **`pushErrorScope()`** method of the GPUDevice interface pushes a new GPU error scope onto the device's error scope stack, allowing you to capture errors of a particular type. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope) + */ + pushErrorScope(filter: GPUErrorFilter): void; addEventListener(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -12665,6 +12693,7 @@ type GPUCanvasAlphaMode = "opaque" | "premultiplied"; type GPUCanvasToneMappingMode = "extended" | "standard"; type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUDeviceLostReason = "destroyed" | "unknown"; +type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; type GPUIndexFormat = "uint16" | "uint32"; type GPULoadOp = "clear" | "load"; type GPUPipelineErrorReason = "internal" | "validation"; diff --git a/baselines/ts5.9/webworker.generated.d.ts b/baselines/ts5.9/webworker.generated.d.ts index 6a97908df..37d37c8fd 100644 --- a/baselines/ts5.9/webworker.generated.d.ts +++ b/baselines/ts5.9/webworker.generated.d.ts @@ -410,6 +410,11 @@ interface GPUExtent3DDict { width: GPUIntegerCoordinate; } +interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase { + colorSpace?: PredefinedColorSpace; + source: VideoFrame; +} + interface GPUObjectDescriptorBase { label?: string; } @@ -5460,6 +5465,30 @@ interface GPUDevice extends EventTarget, GPUObjectBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue) */ readonly queue: GPUQueue; + /** + * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy) + */ + destroy(): void; + /** + * The **`importExternalTexture()`** method of the GPUDevice interface takes an HTMLVideoElement or a VideoFrame object as an input and returns a GPUExternalTexture wrapper object containing a snapshot of the video that can be used as a frame in GPU rendering operations. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture) + */ + importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture; + /** + * The **`popErrorScope()`** method of the GPUDevice interface pops an existing GPU error scope from the error scope stack (originally pushed using GPUDevice.pushErrorScope()) and returns a Promise that resolves to an object describing the first error captured in the scope, or null if no error occurred. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope) + */ + popErrorScope(): Promise; + /** + * The **`pushErrorScope()`** method of the GPUDevice interface pushes a new GPU error scope onto the device's error scope stack, allowing you to capture errors of a particular type. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope) + */ + pushErrorScope(filter: GPUErrorFilter): void; addEventListener(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -14679,6 +14708,7 @@ type GPUCanvasAlphaMode = "opaque" | "premultiplied"; type GPUCanvasToneMappingMode = "extended" | "standard"; type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUDeviceLostReason = "destroyed" | "unknown"; +type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; type GPUIndexFormat = "uint16" | "uint32"; type GPULoadOp = "clear" | "load"; type GPUPipelineErrorReason = "internal" | "validation"; diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index 5548bcc64..bbed48581 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -413,6 +413,11 @@ interface GPUExtent3DDict { width: GPUIntegerCoordinate; } +interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase { + colorSpace?: PredefinedColorSpace; + source: VideoFrame; +} + interface GPUObjectDescriptorBase { label?: string; } @@ -5463,6 +5468,30 @@ interface GPUDevice extends EventTarget, GPUObjectBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue) */ readonly queue: GPUQueue; + /** + * The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy) + */ + destroy(): void; + /** + * The **`importExternalTexture()`** method of the GPUDevice interface takes an HTMLVideoElement or a VideoFrame object as an input and returns a GPUExternalTexture wrapper object containing a snapshot of the video that can be used as a frame in GPU rendering operations. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture) + */ + importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture; + /** + * The **`popErrorScope()`** method of the GPUDevice interface pops an existing GPU error scope from the error scope stack (originally pushed using GPUDevice.pushErrorScope()) and returns a Promise that resolves to an object describing the first error captured in the scope, or null if no error occurred. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope) + */ + popErrorScope(): Promise; + /** + * The **`pushErrorScope()`** method of the GPUDevice interface pushes a new GPU error scope onto the device's error scope stack, allowing you to capture errors of a particular type. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope) + */ + pushErrorScope(filter: GPUErrorFilter): void; addEventListener(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -14682,6 +14711,7 @@ type GPUCanvasAlphaMode = "opaque" | "premultiplied"; type GPUCanvasToneMappingMode = "extended" | "standard"; type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUDeviceLostReason = "destroyed" | "unknown"; +type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; type GPUIndexFormat = "uint16" | "uint32"; type GPULoadOp = "clear" | "load"; type GPUPipelineErrorReason = "internal" | "validation"; diff --git a/inputfiles/overridingTypes.jsonc b/inputfiles/overridingTypes.jsonc index 10f5f2bc5..d55fad8bf 100644 --- a/inputfiles/overridingTypes.jsonc +++ b/inputfiles/overridingTypes.jsonc @@ -2879,7 +2879,22 @@ }, "GPUDevice": { "methods": { - "exposed": "" + "method": { + "createBindGroup": { "exposed": "" }, + "createBindGroupLayout": { "exposed": "" }, + "createBuffer": { "exposed": "" }, + "createCommandEncoder": { "exposed": "" }, + "createComputePipeline": { "exposed": "" }, + "createComputePipelineAsync": { "exposed": "" }, + "createPipelineLayout": { "exposed": "" }, + "createQuerySet": { "exposed": "" }, + "createRenderBundleEncoder": { "exposed": "" }, + "createRenderPipeline": { "exposed": "" }, + "createRenderPipelineAsync": { "exposed": "" }, + "createSampler": { "exposed": "" }, + "createShaderModule": { "exposed": "" }, + "createTexture": { "exposed": "" }, + } } }, "TrustedHTML": {