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
55 changes: 55 additions & 0 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,7 @@ interface FullscreenOptions {
interface GPUCanvasConfiguration {
alphaMode?: GPUCanvasAlphaMode;
colorSpace?: PredefinedColorSpace;
device: GPUDevice;
format: GPUTextureFormat;
toneMapping?: GPUCanvasToneMapping;
usage?: GPUTextureUsageFlags;
Expand Down Expand Up @@ -15274,6 +15275,60 @@ interface GPUDebugCommandsMixin {
pushDebugGroup(groupLabel: string): void;
}

interface GPUDeviceEventMap {
"uncapturederror": GPUUncapturedErrorEvent;
}

/**
* The **`GPUDevice`** interface of the WebGPU API represents a logical GPU device. This is the main interface through which the majority of WebGPU functionality is accessed.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice)
*/
interface GPUDevice extends EventTarget, GPUObjectBase {
/**
* The **`adapterInfo`** read-only property of the GPUDevice interface returns a GPUAdapterInfo object containing identifying information about the device's originating adapter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/adapterInfo)
*/
readonly adapterInfo: GPUAdapterInfo;
/**
* The **`features`** read-only property of the GPUDevice interface returns a GPUSupportedFeatures object that describes additional functionality supported by the device. Only features requested during the creation of the device (i.e., when GPUAdapter.requestDevice() is called) are included.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/features)
*/
readonly features: GPUSupportedFeatures;
/**
* The **`limits`** read-only property of the GPUDevice interface returns a GPUSupportedLimits object that describes the limits supported by the device. All limit values will be included, and the limits requested during the creation of the device (i.e., when GPUAdapter.requestDevice() is called) will be reflected in those values.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/limits)
*/
readonly limits: GPUSupportedLimits;
/**
* The **`lost`** read-only property of the GPUDevice interface contains a Promise that remains pending throughout the device's lifetime and resolves with a GPUDeviceLostInfo object when the device is lost.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/lost)
*/
readonly lost: Promise<GPUDeviceLostInfo>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/uncapturederror_event) */
onuncapturederror: ((this: GPUDevice, ev: GPUUncapturedErrorEvent) => any) | null;
/**
* The **`queue`** read-only property of the GPUDevice interface returns the primary GPUQueue for the device.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue)
*/
readonly queue: GPUQueue;
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;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var GPUDevice: {
prototype: GPUDevice;
new(): GPUDevice;
};

/**
* The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost.
* Available only in secure contexts.
Expand Down
55 changes: 55 additions & 0 deletions baselines/serviceworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ interface FontFaceSetLoadEventInit extends EventInit {
interface GPUCanvasConfiguration {
alphaMode?: GPUCanvasAlphaMode;
colorSpace?: PredefinedColorSpace;
device: GPUDevice;
format: GPUTextureFormat;
toneMapping?: GPUCanvasToneMapping;
usage?: GPUTextureUsageFlags;
Expand Down Expand Up @@ -4717,6 +4718,60 @@ interface GPUDebugCommandsMixin {
pushDebugGroup(groupLabel: string): void;
}

interface GPUDeviceEventMap {
"uncapturederror": GPUUncapturedErrorEvent;
}

/**
* The **`GPUDevice`** interface of the WebGPU API represents a logical GPU device. This is the main interface through which the majority of WebGPU functionality is accessed.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice)
*/
interface GPUDevice extends EventTarget, GPUObjectBase {
/**
* The **`adapterInfo`** read-only property of the GPUDevice interface returns a GPUAdapterInfo object containing identifying information about the device's originating adapter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/adapterInfo)
*/
readonly adapterInfo: GPUAdapterInfo;
/**
* The **`features`** read-only property of the GPUDevice interface returns a GPUSupportedFeatures object that describes additional functionality supported by the device. Only features requested during the creation of the device (i.e., when GPUAdapter.requestDevice() is called) are included.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/features)
*/
readonly features: GPUSupportedFeatures;
/**
* The **`limits`** read-only property of the GPUDevice interface returns a GPUSupportedLimits object that describes the limits supported by the device. All limit values will be included, and the limits requested during the creation of the device (i.e., when GPUAdapter.requestDevice() is called) will be reflected in those values.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/limits)
*/
readonly limits: GPUSupportedLimits;
/**
* The **`lost`** read-only property of the GPUDevice interface contains a Promise that remains pending throughout the device's lifetime and resolves with a GPUDeviceLostInfo object when the device is lost.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/lost)
*/
readonly lost: Promise<GPUDeviceLostInfo>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/uncapturederror_event) */
onuncapturederror: ((this: GPUDevice, ev: GPUUncapturedErrorEvent) => any) | null;
/**
* The **`queue`** read-only property of the GPUDevice interface returns the primary GPUQueue for the device.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue)
*/
readonly queue: GPUQueue;
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;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var GPUDevice: {
prototype: GPUDevice;
new(): GPUDevice;
};

/**
* The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost.
* Available only in secure contexts.
Expand Down
55 changes: 55 additions & 0 deletions baselines/sharedworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ interface FontFaceSetLoadEventInit extends EventInit {
interface GPUCanvasConfiguration {
alphaMode?: GPUCanvasAlphaMode;
colorSpace?: PredefinedColorSpace;
device: GPUDevice;
format: GPUTextureFormat;
toneMapping?: GPUCanvasToneMapping;
usage?: GPUTextureUsageFlags;
Expand Down Expand Up @@ -4400,6 +4401,60 @@ interface GPUDebugCommandsMixin {
pushDebugGroup(groupLabel: string): void;
}

interface GPUDeviceEventMap {
"uncapturederror": GPUUncapturedErrorEvent;
}

/**
* The **`GPUDevice`** interface of the WebGPU API represents a logical GPU device. This is the main interface through which the majority of WebGPU functionality is accessed.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice)
*/
interface GPUDevice extends EventTarget, GPUObjectBase {
/**
* The **`adapterInfo`** read-only property of the GPUDevice interface returns a GPUAdapterInfo object containing identifying information about the device's originating adapter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/adapterInfo)
*/
readonly adapterInfo: GPUAdapterInfo;
/**
* The **`features`** read-only property of the GPUDevice interface returns a GPUSupportedFeatures object that describes additional functionality supported by the device. Only features requested during the creation of the device (i.e., when GPUAdapter.requestDevice() is called) are included.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/features)
*/
readonly features: GPUSupportedFeatures;
/**
* The **`limits`** read-only property of the GPUDevice interface returns a GPUSupportedLimits object that describes the limits supported by the device. All limit values will be included, and the limits requested during the creation of the device (i.e., when GPUAdapter.requestDevice() is called) will be reflected in those values.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/limits)
*/
readonly limits: GPUSupportedLimits;
/**
* The **`lost`** read-only property of the GPUDevice interface contains a Promise that remains pending throughout the device's lifetime and resolves with a GPUDeviceLostInfo object when the device is lost.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/lost)
*/
readonly lost: Promise<GPUDeviceLostInfo>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/uncapturederror_event) */
onuncapturederror: ((this: GPUDevice, ev: GPUUncapturedErrorEvent) => any) | null;
/**
* The **`queue`** read-only property of the GPUDevice interface returns the primary GPUQueue for the device.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue)
*/
readonly queue: GPUQueue;
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;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var GPUDevice: {
prototype: GPUDevice;
new(): GPUDevice;
};

/**
* The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost.
* Available only in secure contexts.
Expand Down
55 changes: 55 additions & 0 deletions baselines/ts5.5/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,7 @@ interface FullscreenOptions {
interface GPUCanvasConfiguration {
alphaMode?: GPUCanvasAlphaMode;
colorSpace?: PredefinedColorSpace;
device: GPUDevice;
format: GPUTextureFormat;
toneMapping?: GPUCanvasToneMapping;
usage?: GPUTextureUsageFlags;
Expand Down Expand Up @@ -15260,6 +15261,60 @@ interface GPUDebugCommandsMixin {
pushDebugGroup(groupLabel: string): void;
}

interface GPUDeviceEventMap {
"uncapturederror": GPUUncapturedErrorEvent;
}

/**
* The **`GPUDevice`** interface of the WebGPU API represents a logical GPU device. This is the main interface through which the majority of WebGPU functionality is accessed.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice)
*/
interface GPUDevice extends EventTarget, GPUObjectBase {
/**
* The **`adapterInfo`** read-only property of the GPUDevice interface returns a GPUAdapterInfo object containing identifying information about the device's originating adapter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/adapterInfo)
*/
readonly adapterInfo: GPUAdapterInfo;
/**
* The **`features`** read-only property of the GPUDevice interface returns a GPUSupportedFeatures object that describes additional functionality supported by the device. Only features requested during the creation of the device (i.e., when GPUAdapter.requestDevice() is called) are included.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/features)
*/
readonly features: GPUSupportedFeatures;
/**
* The **`limits`** read-only property of the GPUDevice interface returns a GPUSupportedLimits object that describes the limits supported by the device. All limit values will be included, and the limits requested during the creation of the device (i.e., when GPUAdapter.requestDevice() is called) will be reflected in those values.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/limits)
*/
readonly limits: GPUSupportedLimits;
/**
* The **`lost`** read-only property of the GPUDevice interface contains a Promise that remains pending throughout the device's lifetime and resolves with a GPUDeviceLostInfo object when the device is lost.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/lost)
*/
readonly lost: Promise<GPUDeviceLostInfo>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/uncapturederror_event) */
onuncapturederror: ((this: GPUDevice, ev: GPUUncapturedErrorEvent) => any) | null;
/**
* The **`queue`** read-only property of the GPUDevice interface returns the primary GPUQueue for the device.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue)
*/
readonly queue: GPUQueue;
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;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var GPUDevice: {
prototype: GPUDevice;
new(): GPUDevice;
};

/**
* The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost.
* Available only in secure contexts.
Expand Down
55 changes: 55 additions & 0 deletions baselines/ts5.5/serviceworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ interface FontFaceSetLoadEventInit extends EventInit {
interface GPUCanvasConfiguration {
alphaMode?: GPUCanvasAlphaMode;
colorSpace?: PredefinedColorSpace;
device: GPUDevice;
format: GPUTextureFormat;
toneMapping?: GPUCanvasToneMapping;
usage?: GPUTextureUsageFlags;
Expand Down Expand Up @@ -4714,6 +4715,60 @@ interface GPUDebugCommandsMixin {
pushDebugGroup(groupLabel: string): void;
}

interface GPUDeviceEventMap {
"uncapturederror": GPUUncapturedErrorEvent;
}

/**
* The **`GPUDevice`** interface of the WebGPU API represents a logical GPU device. This is the main interface through which the majority of WebGPU functionality is accessed.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice)
*/
interface GPUDevice extends EventTarget, GPUObjectBase {
/**
* The **`adapterInfo`** read-only property of the GPUDevice interface returns a GPUAdapterInfo object containing identifying information about the device's originating adapter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/adapterInfo)
*/
readonly adapterInfo: GPUAdapterInfo;
/**
* The **`features`** read-only property of the GPUDevice interface returns a GPUSupportedFeatures object that describes additional functionality supported by the device. Only features requested during the creation of the device (i.e., when GPUAdapter.requestDevice() is called) are included.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/features)
*/
readonly features: GPUSupportedFeatures;
/**
* The **`limits`** read-only property of the GPUDevice interface returns a GPUSupportedLimits object that describes the limits supported by the device. All limit values will be included, and the limits requested during the creation of the device (i.e., when GPUAdapter.requestDevice() is called) will be reflected in those values.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/limits)
*/
readonly limits: GPUSupportedLimits;
/**
* The **`lost`** read-only property of the GPUDevice interface contains a Promise that remains pending throughout the device's lifetime and resolves with a GPUDeviceLostInfo object when the device is lost.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/lost)
*/
readonly lost: Promise<GPUDeviceLostInfo>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/uncapturederror_event) */
onuncapturederror: ((this: GPUDevice, ev: GPUUncapturedErrorEvent) => any) | null;
/**
* The **`queue`** read-only property of the GPUDevice interface returns the primary GPUQueue for the device.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue)
*/
readonly queue: GPUQueue;
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;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var GPUDevice: {
prototype: GPUDevice;
new(): GPUDevice;
};

/**
* The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost.
* Available only in secure contexts.
Expand Down
Loading