Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,11 @@ interface GPUExtent3DDict {
width: GPUIntegerCoordinate;
}

interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
colorSpace?: PredefinedColorSpace;
source: HTMLVideoElement | VideoFrame;
}

interface GPUObjectDescriptorBase {
label?: string;
}
Expand Down Expand Up @@ -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<GPUError | null>;
/**
* 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<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
Expand Down Expand Up @@ -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";
Expand Down
29 changes: 29 additions & 0 deletions baselines/serviceworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,10 @@ interface GPUExtent3DDict {
width: GPUIntegerCoordinate;
}

interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
colorSpace?: PredefinedColorSpace;
}

interface GPUObjectDescriptorBase {
label?: string;
}
Expand Down Expand Up @@ -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<GPUError | null>;
/**
* 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<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
Expand Down Expand Up @@ -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";
Expand Down
29 changes: 29 additions & 0 deletions baselines/sharedworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,10 @@ interface GPUExtent3DDict {
width: GPUIntegerCoordinate;
}

interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
colorSpace?: PredefinedColorSpace;
}

interface GPUObjectDescriptorBase {
label?: string;
}
Expand Down Expand Up @@ -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<GPUError | null>;
/**
* 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<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
Expand Down Expand Up @@ -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";
Expand Down
30 changes: 30 additions & 0 deletions baselines/ts5.5/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,11 @@ interface GPUExtent3DDict {
width: GPUIntegerCoordinate;
}

interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
colorSpace?: PredefinedColorSpace;
source: HTMLVideoElement | VideoFrame;
}

interface GPUObjectDescriptorBase {
label?: string;
}
Expand Down Expand Up @@ -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<GPUError | null>;
/**
* 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<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
Expand Down Expand Up @@ -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";
Expand Down
29 changes: 29 additions & 0 deletions baselines/ts5.5/serviceworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,10 @@ interface GPUExtent3DDict {
width: GPUIntegerCoordinate;
}

interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
colorSpace?: PredefinedColorSpace;
}

interface GPUObjectDescriptorBase {
label?: string;
}
Expand Down Expand Up @@ -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<GPUError | null>;
/**
* 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<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
Expand Down Expand Up @@ -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";
Expand Down
29 changes: 29 additions & 0 deletions baselines/ts5.5/sharedworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,10 @@ interface GPUExtent3DDict {
width: GPUIntegerCoordinate;
}

interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
colorSpace?: PredefinedColorSpace;
}

interface GPUObjectDescriptorBase {
label?: string;
}
Expand Down Expand Up @@ -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<GPUError | null>;
/**
* 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<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
Expand Down Expand Up @@ -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";
Expand Down
Loading