From 67e07be515d6fb2acda33c13e4f7ea9cb556d363 Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Sun, 20 Jul 2025 20:18:27 +0200 Subject: [PATCH] Restore GPU*Error from BCD 6.0.24 --- baselines/dom.generated.d.ts | 30 ++++++++++++++++++++ baselines/serviceworker.generated.d.ts | 30 ++++++++++++++++++++ baselines/sharedworker.generated.d.ts | 30 ++++++++++++++++++++ baselines/ts5.5/dom.generated.d.ts | 30 ++++++++++++++++++++ baselines/ts5.5/serviceworker.generated.d.ts | 30 ++++++++++++++++++++ baselines/ts5.5/sharedworker.generated.d.ts | 30 ++++++++++++++++++++ baselines/ts5.5/webworker.generated.d.ts | 30 ++++++++++++++++++++ baselines/ts5.6/dom.generated.d.ts | 30 ++++++++++++++++++++ baselines/ts5.6/serviceworker.generated.d.ts | 30 ++++++++++++++++++++ baselines/ts5.6/sharedworker.generated.d.ts | 30 ++++++++++++++++++++ baselines/ts5.6/webworker.generated.d.ts | 30 ++++++++++++++++++++ baselines/webworker.generated.d.ts | 30 ++++++++++++++++++++ inputfiles/overridingTypes.jsonc | 15 ---------- 13 files changed, 360 insertions(+), 15 deletions(-) diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index f70a201a6..ee1440335 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -746,6 +746,10 @@ interface FullscreenOptions { navigationUI?: FullscreenNavigationUI; } +interface GPUPipelineErrorInit { + reason: GPUPipelineErrorReason; +} + interface GainOptions extends AudioNodeOptions { gain?: number; } @@ -12559,6 +12563,31 @@ interface GPUError { readonly message: string; } +declare var GPUError: { + prototype: GPUError; + new(): GPUError; +}; + +/** + * The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError) + */ +interface GPUPipelineError extends DOMException { + /** + * The **`reason`** read-only property of the GPUPipelineError interface defines the reason the pipeline creation failed in a machine-readable way. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError/reason) + */ + readonly reason: GPUPipelineErrorReason; +} + +declare var GPUPipelineError: { + prototype: GPUPipelineError; + new(message: string, options: GPUPipelineErrorInit): GPUPipelineError; +}; + /** * The `GainNode` interface represents a change in volume. * @@ -39802,6 +39831,7 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; type FullscreenNavigationUI = "auto" | "hide" | "show"; +type GPUPipelineErrorReason = "internal" | "validation"; type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble"; type GamepadHapticsResult = "complete" | "preempted"; type GamepadMappingType = "" | "standard" | "xr-standard"; diff --git a/baselines/serviceworker.generated.d.ts b/baselines/serviceworker.generated.d.ts index 4b71e3d74..4dd008d93 100644 --- a/baselines/serviceworker.generated.d.ts +++ b/baselines/serviceworker.generated.d.ts @@ -268,6 +268,10 @@ interface FontFaceSetLoadEventInit extends EventInit { fontfaces?: FontFace[]; } +interface GPUPipelineErrorInit { + reason: GPUPipelineErrorReason; +} + interface GetNotificationOptions { tag?: string; } @@ -4110,6 +4114,31 @@ interface GPUError { readonly message: string; } +declare var GPUError: { + prototype: GPUError; + new(): GPUError; +}; + +/** + * The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError) + */ +interface GPUPipelineError extends DOMException { + /** + * The **`reason`** read-only property of the GPUPipelineError interface defines the reason the pipeline creation failed in a machine-readable way. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError/reason) + */ + readonly reason: GPUPipelineErrorReason; +} + +declare var GPUPipelineError: { + prototype: GPUPipelineError; + new(message: string, options: GPUPipelineErrorInit): GPUPipelineError; +}; + interface GenericTransformStream { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */ readonly readable: ReadableStream; @@ -11537,6 +11566,7 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; type FrameType = "auxiliary" | "nested" | "none" | "top-level"; +type GPUPipelineErrorReason = "internal" | "validation"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique"; diff --git a/baselines/sharedworker.generated.d.ts b/baselines/sharedworker.generated.d.ts index 0484c11c6..e4aa9408f 100644 --- a/baselines/sharedworker.generated.d.ts +++ b/baselines/sharedworker.generated.d.ts @@ -212,6 +212,10 @@ interface FontFaceSetLoadEventInit extends EventInit { fontfaces?: FontFace[]; } +interface GPUPipelineErrorInit { + reason: GPUPipelineErrorReason; +} + interface GetNotificationOptions { tag?: string; } @@ -3793,6 +3797,31 @@ interface GPUError { readonly message: string; } +declare var GPUError: { + prototype: GPUError; + new(): GPUError; +}; + +/** + * The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError) + */ +interface GPUPipelineError extends DOMException { + /** + * The **`reason`** read-only property of the GPUPipelineError interface defines the reason the pipeline creation failed in a machine-readable way. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError/reason) + */ + readonly reason: GPUPipelineErrorReason; +} + +declare var GPUPipelineError: { + prototype: GPUPipelineError; + new(message: string, options: GPUPipelineErrorInit): GPUPipelineError; +}; + interface GenericTransformStream { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */ readonly readable: ReadableStream; @@ -11222,6 +11251,7 @@ type FileSystemHandleKind = "directory" | "file"; type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; +type GPUPipelineErrorReason = "internal" | "validation"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique"; diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index 8e1248a03..a2eb25c80 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -746,6 +746,10 @@ interface FullscreenOptions { navigationUI?: FullscreenNavigationUI; } +interface GPUPipelineErrorInit { + reason: GPUPipelineErrorReason; +} + interface GainOptions extends AudioNodeOptions { gain?: number; } @@ -12548,6 +12552,31 @@ interface GPUError { readonly message: string; } +declare var GPUError: { + prototype: GPUError; + new(): GPUError; +}; + +/** + * The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError) + */ +interface GPUPipelineError extends DOMException { + /** + * The **`reason`** read-only property of the GPUPipelineError interface defines the reason the pipeline creation failed in a machine-readable way. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError/reason) + */ + readonly reason: GPUPipelineErrorReason; +} + +declare var GPUPipelineError: { + prototype: GPUPipelineError; + new(message: string, options: GPUPipelineErrorInit): GPUPipelineError; +}; + /** * The `GainNode` interface represents a change in volume. * @@ -39779,6 +39808,7 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; type FullscreenNavigationUI = "auto" | "hide" | "show"; +type GPUPipelineErrorReason = "internal" | "validation"; type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble"; type GamepadHapticsResult = "complete" | "preempted"; type GamepadMappingType = "" | "standard" | "xr-standard"; diff --git a/baselines/ts5.5/serviceworker.generated.d.ts b/baselines/ts5.5/serviceworker.generated.d.ts index b5e81a828..12f4498f4 100644 --- a/baselines/ts5.5/serviceworker.generated.d.ts +++ b/baselines/ts5.5/serviceworker.generated.d.ts @@ -268,6 +268,10 @@ interface FontFaceSetLoadEventInit extends EventInit { fontfaces?: FontFace[]; } +interface GPUPipelineErrorInit { + reason: GPUPipelineErrorReason; +} + interface GetNotificationOptions { tag?: string; } @@ -4110,6 +4114,31 @@ interface GPUError { readonly message: string; } +declare var GPUError: { + prototype: GPUError; + new(): GPUError; +}; + +/** + * The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError) + */ +interface GPUPipelineError extends DOMException { + /** + * The **`reason`** read-only property of the GPUPipelineError interface defines the reason the pipeline creation failed in a machine-readable way. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError/reason) + */ + readonly reason: GPUPipelineErrorReason; +} + +declare var GPUPipelineError: { + prototype: GPUPipelineError; + new(message: string, options: GPUPipelineErrorInit): GPUPipelineError; +}; + interface GenericTransformStream { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */ readonly readable: ReadableStream; @@ -11537,6 +11566,7 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; type FrameType = "auxiliary" | "nested" | "none" | "top-level"; +type GPUPipelineErrorReason = "internal" | "validation"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique"; diff --git a/baselines/ts5.5/sharedworker.generated.d.ts b/baselines/ts5.5/sharedworker.generated.d.ts index 7bc406677..86888cd24 100644 --- a/baselines/ts5.5/sharedworker.generated.d.ts +++ b/baselines/ts5.5/sharedworker.generated.d.ts @@ -212,6 +212,10 @@ interface FontFaceSetLoadEventInit extends EventInit { fontfaces?: FontFace[]; } +interface GPUPipelineErrorInit { + reason: GPUPipelineErrorReason; +} + interface GetNotificationOptions { tag?: string; } @@ -3793,6 +3797,31 @@ interface GPUError { readonly message: string; } +declare var GPUError: { + prototype: GPUError; + new(): GPUError; +}; + +/** + * The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError) + */ +interface GPUPipelineError extends DOMException { + /** + * The **`reason`** read-only property of the GPUPipelineError interface defines the reason the pipeline creation failed in a machine-readable way. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError/reason) + */ + readonly reason: GPUPipelineErrorReason; +} + +declare var GPUPipelineError: { + prototype: GPUPipelineError; + new(message: string, options: GPUPipelineErrorInit): GPUPipelineError; +}; + interface GenericTransformStream { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */ readonly readable: ReadableStream; @@ -11222,6 +11251,7 @@ type FileSystemHandleKind = "directory" | "file"; type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; +type GPUPipelineErrorReason = "internal" | "validation"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique"; diff --git a/baselines/ts5.5/webworker.generated.d.ts b/baselines/ts5.5/webworker.generated.d.ts index e80fc0364..5695cec64 100644 --- a/baselines/ts5.5/webworker.generated.d.ts +++ b/baselines/ts5.5/webworker.generated.d.ts @@ -352,6 +352,10 @@ interface FontFaceSetLoadEventInit extends EventInit { fontfaces?: FontFace[]; } +interface GPUPipelineErrorInit { + reason: GPUPipelineErrorReason; +} + interface GetNotificationOptions { tag?: string; } @@ -4802,6 +4806,31 @@ interface GPUError { readonly message: string; } +declare var GPUError: { + prototype: GPUError; + new(): GPUError; +}; + +/** + * The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError) + */ +interface GPUPipelineError extends DOMException { + /** + * The **`reason`** read-only property of the GPUPipelineError interface defines the reason the pipeline creation failed in a machine-readable way. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError/reason) + */ + readonly reason: GPUPipelineErrorReason; +} + +declare var GPUPipelineError: { + prototype: GPUPipelineError; + new(message: string, options: GPUPipelineErrorInit): GPUPipelineError; +}; + interface GenericTransformStream { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */ readonly readable: ReadableStream; @@ -13202,6 +13231,7 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; type FrameType = "auxiliary" | "nested" | "none" | "top-level"; +type GPUPipelineErrorReason = "internal" | "validation"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index 633e5e888..7b1743a98 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -746,6 +746,10 @@ interface FullscreenOptions { navigationUI?: FullscreenNavigationUI; } +interface GPUPipelineErrorInit { + reason: GPUPipelineErrorReason; +} + interface GainOptions extends AudioNodeOptions { gain?: number; } @@ -12559,6 +12563,31 @@ interface GPUError { readonly message: string; } +declare var GPUError: { + prototype: GPUError; + new(): GPUError; +}; + +/** + * The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError) + */ +interface GPUPipelineError extends DOMException { + /** + * The **`reason`** read-only property of the GPUPipelineError interface defines the reason the pipeline creation failed in a machine-readable way. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError/reason) + */ + readonly reason: GPUPipelineErrorReason; +} + +declare var GPUPipelineError: { + prototype: GPUPipelineError; + new(message: string, options: GPUPipelineErrorInit): GPUPipelineError; +}; + /** * The `GainNode` interface represents a change in volume. * @@ -39802,6 +39831,7 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; type FullscreenNavigationUI = "auto" | "hide" | "show"; +type GPUPipelineErrorReason = "internal" | "validation"; type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble"; type GamepadHapticsResult = "complete" | "preempted"; type GamepadMappingType = "" | "standard" | "xr-standard"; diff --git a/baselines/ts5.6/serviceworker.generated.d.ts b/baselines/ts5.6/serviceworker.generated.d.ts index b5e81a828..12f4498f4 100644 --- a/baselines/ts5.6/serviceworker.generated.d.ts +++ b/baselines/ts5.6/serviceworker.generated.d.ts @@ -268,6 +268,10 @@ interface FontFaceSetLoadEventInit extends EventInit { fontfaces?: FontFace[]; } +interface GPUPipelineErrorInit { + reason: GPUPipelineErrorReason; +} + interface GetNotificationOptions { tag?: string; } @@ -4110,6 +4114,31 @@ interface GPUError { readonly message: string; } +declare var GPUError: { + prototype: GPUError; + new(): GPUError; +}; + +/** + * The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError) + */ +interface GPUPipelineError extends DOMException { + /** + * The **`reason`** read-only property of the GPUPipelineError interface defines the reason the pipeline creation failed in a machine-readable way. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError/reason) + */ + readonly reason: GPUPipelineErrorReason; +} + +declare var GPUPipelineError: { + prototype: GPUPipelineError; + new(message: string, options: GPUPipelineErrorInit): GPUPipelineError; +}; + interface GenericTransformStream { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */ readonly readable: ReadableStream; @@ -11537,6 +11566,7 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; type FrameType = "auxiliary" | "nested" | "none" | "top-level"; +type GPUPipelineErrorReason = "internal" | "validation"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique"; diff --git a/baselines/ts5.6/sharedworker.generated.d.ts b/baselines/ts5.6/sharedworker.generated.d.ts index 7bc406677..86888cd24 100644 --- a/baselines/ts5.6/sharedworker.generated.d.ts +++ b/baselines/ts5.6/sharedworker.generated.d.ts @@ -212,6 +212,10 @@ interface FontFaceSetLoadEventInit extends EventInit { fontfaces?: FontFace[]; } +interface GPUPipelineErrorInit { + reason: GPUPipelineErrorReason; +} + interface GetNotificationOptions { tag?: string; } @@ -3793,6 +3797,31 @@ interface GPUError { readonly message: string; } +declare var GPUError: { + prototype: GPUError; + new(): GPUError; +}; + +/** + * The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError) + */ +interface GPUPipelineError extends DOMException { + /** + * The **`reason`** read-only property of the GPUPipelineError interface defines the reason the pipeline creation failed in a machine-readable way. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError/reason) + */ + readonly reason: GPUPipelineErrorReason; +} + +declare var GPUPipelineError: { + prototype: GPUPipelineError; + new(message: string, options: GPUPipelineErrorInit): GPUPipelineError; +}; + interface GenericTransformStream { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */ readonly readable: ReadableStream; @@ -11222,6 +11251,7 @@ type FileSystemHandleKind = "directory" | "file"; type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; +type GPUPipelineErrorReason = "internal" | "validation"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique"; diff --git a/baselines/ts5.6/webworker.generated.d.ts b/baselines/ts5.6/webworker.generated.d.ts index e80fc0364..5695cec64 100644 --- a/baselines/ts5.6/webworker.generated.d.ts +++ b/baselines/ts5.6/webworker.generated.d.ts @@ -352,6 +352,10 @@ interface FontFaceSetLoadEventInit extends EventInit { fontfaces?: FontFace[]; } +interface GPUPipelineErrorInit { + reason: GPUPipelineErrorReason; +} + interface GetNotificationOptions { tag?: string; } @@ -4802,6 +4806,31 @@ interface GPUError { readonly message: string; } +declare var GPUError: { + prototype: GPUError; + new(): GPUError; +}; + +/** + * The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError) + */ +interface GPUPipelineError extends DOMException { + /** + * The **`reason`** read-only property of the GPUPipelineError interface defines the reason the pipeline creation failed in a machine-readable way. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError/reason) + */ + readonly reason: GPUPipelineErrorReason; +} + +declare var GPUPipelineError: { + prototype: GPUPipelineError; + new(message: string, options: GPUPipelineErrorInit): GPUPipelineError; +}; + interface GenericTransformStream { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */ readonly readable: ReadableStream; @@ -13202,6 +13231,7 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; type FrameType = "auxiliary" | "nested" | "none" | "top-level"; +type GPUPipelineErrorReason = "internal" | "validation"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index 577ea7001..c25649525 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -352,6 +352,10 @@ interface FontFaceSetLoadEventInit extends EventInit { fontfaces?: FontFace[]; } +interface GPUPipelineErrorInit { + reason: GPUPipelineErrorReason; +} + interface GetNotificationOptions { tag?: string; } @@ -4802,6 +4806,31 @@ interface GPUError { readonly message: string; } +declare var GPUError: { + prototype: GPUError; + new(): GPUError; +}; + +/** + * The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError) + */ +interface GPUPipelineError extends DOMException { + /** + * The **`reason`** read-only property of the GPUPipelineError interface defines the reason the pipeline creation failed in a machine-readable way. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError/reason) + */ + readonly reason: GPUPipelineErrorReason; +} + +declare var GPUPipelineError: { + prototype: GPUPipelineError; + new(message: string, options: GPUPipelineErrorInit): GPUPipelineError; +}; + interface GenericTransformStream { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */ readonly readable: ReadableStream; @@ -13202,6 +13231,7 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; type FrameType = "auxiliary" | "nested" | "none" | "top-level"; +type GPUPipelineErrorReason = "internal" | "validation"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; diff --git a/inputfiles/overridingTypes.jsonc b/inputfiles/overridingTypes.jsonc index 8a5a30d30..2db03fc6f 100644 --- a/inputfiles/overridingTypes.jsonc +++ b/inputfiles/overridingTypes.jsonc @@ -532,18 +532,6 @@ } } }, - "GPUError": { - "exposed": "Window Worker", - // WebKit doesn't have GPUError interface but only subinterfaces as of 2024-11-20 - "noInterfaceObject": true, - "properties": { - "property": { - "message": { - "exposed": "Window Worker" - } - } - } - }, "GPUPipelineError": { // Web IDL optional argument can be followed by a required argument, but not in TS // TODO: Maybe do this in the emitter? @@ -3762,9 +3750,6 @@ "GPUOutOfMemoryError": { "exposed": "" }, - "GPUPipelineError": { - "exposed": "" - }, "GPUPipelineLayout": { "exposed": "" },