Skip to content

Commit 67e07be

Browse files
committed
Restore GPU*Error from BCD 6.0.24
1 parent 174b76c commit 67e07be

13 files changed

+360
-15
lines changed

baselines/dom.generated.d.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,10 @@ interface FullscreenOptions {
746746
navigationUI?: FullscreenNavigationUI;
747747
}
748748

749+
interface GPUPipelineErrorInit {
750+
reason: GPUPipelineErrorReason;
751+
}
752+
749753
interface GainOptions extends AudioNodeOptions {
750754
gain?: number;
751755
}
@@ -12559,6 +12563,31 @@ interface GPUError {
1255912563
readonly message: string;
1256012564
}
1256112565

12566+
declare var GPUError: {
12567+
prototype: GPUError;
12568+
new(): GPUError;
12569+
};
12570+
12571+
/**
12572+
* The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure.
12573+
* Available only in secure contexts.
12574+
*
12575+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError)
12576+
*/
12577+
interface GPUPipelineError extends DOMException {
12578+
/**
12579+
* The **`reason`** read-only property of the GPUPipelineError interface defines the reason the pipeline creation failed in a machine-readable way.
12580+
*
12581+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError/reason)
12582+
*/
12583+
readonly reason: GPUPipelineErrorReason;
12584+
}
12585+
12586+
declare var GPUPipelineError: {
12587+
prototype: GPUPipelineError;
12588+
new(message: string, options: GPUPipelineErrorInit): GPUPipelineError;
12589+
};
12590+
1256212591
/**
1256312592
* The `GainNode` interface represents a change in volume.
1256412593
*
@@ -39802,6 +39831,7 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
3980239831
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
3980339832
type FontFaceSetLoadStatus = "loaded" | "loading";
3980439833
type FullscreenNavigationUI = "auto" | "hide" | "show";
39834+
type GPUPipelineErrorReason = "internal" | "validation";
3980539835
type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble";
3980639836
type GamepadHapticsResult = "complete" | "preempted";
3980739837
type GamepadMappingType = "" | "standard" | "xr-standard";

baselines/serviceworker.generated.d.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,10 @@ interface FontFaceSetLoadEventInit extends EventInit {
268268
fontfaces?: FontFace[];
269269
}
270270

271+
interface GPUPipelineErrorInit {
272+
reason: GPUPipelineErrorReason;
273+
}
274+
271275
interface GetNotificationOptions {
272276
tag?: string;
273277
}
@@ -4110,6 +4114,31 @@ interface GPUError {
41104114
readonly message: string;
41114115
}
41124116

4117+
declare var GPUError: {
4118+
prototype: GPUError;
4119+
new(): GPUError;
4120+
};
4121+
4122+
/**
4123+
* The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure.
4124+
* Available only in secure contexts.
4125+
*
4126+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError)
4127+
*/
4128+
interface GPUPipelineError extends DOMException {
4129+
/**
4130+
* The **`reason`** read-only property of the GPUPipelineError interface defines the reason the pipeline creation failed in a machine-readable way.
4131+
*
4132+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError/reason)
4133+
*/
4134+
readonly reason: GPUPipelineErrorReason;
4135+
}
4136+
4137+
declare var GPUPipelineError: {
4138+
prototype: GPUPipelineError;
4139+
new(message: string, options: GPUPipelineErrorInit): GPUPipelineError;
4140+
};
4141+
41134142
interface GenericTransformStream {
41144143
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */
41154144
readonly readable: ReadableStream;
@@ -11537,6 +11566,7 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
1153711566
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
1153811567
type FontFaceSetLoadStatus = "loaded" | "loading";
1153911568
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
11569+
type GPUPipelineErrorReason = "internal" | "validation";
1154011570
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";
1154111571
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
1154211572
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";

baselines/sharedworker.generated.d.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,10 @@ interface FontFaceSetLoadEventInit extends EventInit {
212212
fontfaces?: FontFace[];
213213
}
214214

215+
interface GPUPipelineErrorInit {
216+
reason: GPUPipelineErrorReason;
217+
}
218+
215219
interface GetNotificationOptions {
216220
tag?: string;
217221
}
@@ -3793,6 +3797,31 @@ interface GPUError {
37933797
readonly message: string;
37943798
}
37953799

3800+
declare var GPUError: {
3801+
prototype: GPUError;
3802+
new(): GPUError;
3803+
};
3804+
3805+
/**
3806+
* The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure.
3807+
* Available only in secure contexts.
3808+
*
3809+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError)
3810+
*/
3811+
interface GPUPipelineError extends DOMException {
3812+
/**
3813+
* The **`reason`** read-only property of the GPUPipelineError interface defines the reason the pipeline creation failed in a machine-readable way.
3814+
*
3815+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError/reason)
3816+
*/
3817+
readonly reason: GPUPipelineErrorReason;
3818+
}
3819+
3820+
declare var GPUPipelineError: {
3821+
prototype: GPUPipelineError;
3822+
new(message: string, options: GPUPipelineErrorInit): GPUPipelineError;
3823+
};
3824+
37963825
interface GenericTransformStream {
37973826
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */
37983827
readonly readable: ReadableStream;
@@ -11222,6 +11251,7 @@ type FileSystemHandleKind = "directory" | "file";
1122211251
type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
1122311252
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
1122411253
type FontFaceSetLoadStatus = "loaded" | "loading";
11254+
type GPUPipelineErrorReason = "internal" | "validation";
1122511255
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";
1122611256
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
1122711257
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";

baselines/ts5.5/dom.generated.d.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,10 @@ interface FullscreenOptions {
746746
navigationUI?: FullscreenNavigationUI;
747747
}
748748

749+
interface GPUPipelineErrorInit {
750+
reason: GPUPipelineErrorReason;
751+
}
752+
749753
interface GainOptions extends AudioNodeOptions {
750754
gain?: number;
751755
}
@@ -12548,6 +12552,31 @@ interface GPUError {
1254812552
readonly message: string;
1254912553
}
1255012554

12555+
declare var GPUError: {
12556+
prototype: GPUError;
12557+
new(): GPUError;
12558+
};
12559+
12560+
/**
12561+
* The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure.
12562+
* Available only in secure contexts.
12563+
*
12564+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError)
12565+
*/
12566+
interface GPUPipelineError extends DOMException {
12567+
/**
12568+
* The **`reason`** read-only property of the GPUPipelineError interface defines the reason the pipeline creation failed in a machine-readable way.
12569+
*
12570+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError/reason)
12571+
*/
12572+
readonly reason: GPUPipelineErrorReason;
12573+
}
12574+
12575+
declare var GPUPipelineError: {
12576+
prototype: GPUPipelineError;
12577+
new(message: string, options: GPUPipelineErrorInit): GPUPipelineError;
12578+
};
12579+
1255112580
/**
1255212581
* The `GainNode` interface represents a change in volume.
1255312582
*
@@ -39779,6 +39808,7 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
3977939808
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
3978039809
type FontFaceSetLoadStatus = "loaded" | "loading";
3978139810
type FullscreenNavigationUI = "auto" | "hide" | "show";
39811+
type GPUPipelineErrorReason = "internal" | "validation";
3978239812
type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble";
3978339813
type GamepadHapticsResult = "complete" | "preempted";
3978439814
type GamepadMappingType = "" | "standard" | "xr-standard";

baselines/ts5.5/serviceworker.generated.d.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,10 @@ interface FontFaceSetLoadEventInit extends EventInit {
268268
fontfaces?: FontFace[];
269269
}
270270

271+
interface GPUPipelineErrorInit {
272+
reason: GPUPipelineErrorReason;
273+
}
274+
271275
interface GetNotificationOptions {
272276
tag?: string;
273277
}
@@ -4110,6 +4114,31 @@ interface GPUError {
41104114
readonly message: string;
41114115
}
41124116

4117+
declare var GPUError: {
4118+
prototype: GPUError;
4119+
new(): GPUError;
4120+
};
4121+
4122+
/**
4123+
* The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure.
4124+
* Available only in secure contexts.
4125+
*
4126+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError)
4127+
*/
4128+
interface GPUPipelineError extends DOMException {
4129+
/**
4130+
* The **`reason`** read-only property of the GPUPipelineError interface defines the reason the pipeline creation failed in a machine-readable way.
4131+
*
4132+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError/reason)
4133+
*/
4134+
readonly reason: GPUPipelineErrorReason;
4135+
}
4136+
4137+
declare var GPUPipelineError: {
4138+
prototype: GPUPipelineError;
4139+
new(message: string, options: GPUPipelineErrorInit): GPUPipelineError;
4140+
};
4141+
41134142
interface GenericTransformStream {
41144143
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */
41154144
readonly readable: ReadableStream;
@@ -11537,6 +11566,7 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
1153711566
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
1153811567
type FontFaceSetLoadStatus = "loaded" | "loading";
1153911568
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
11569+
type GPUPipelineErrorReason = "internal" | "validation";
1154011570
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";
1154111571
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
1154211572
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";

baselines/ts5.5/sharedworker.generated.d.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,10 @@ interface FontFaceSetLoadEventInit extends EventInit {
212212
fontfaces?: FontFace[];
213213
}
214214

215+
interface GPUPipelineErrorInit {
216+
reason: GPUPipelineErrorReason;
217+
}
218+
215219
interface GetNotificationOptions {
216220
tag?: string;
217221
}
@@ -3793,6 +3797,31 @@ interface GPUError {
37933797
readonly message: string;
37943798
}
37953799

3800+
declare var GPUError: {
3801+
prototype: GPUError;
3802+
new(): GPUError;
3803+
};
3804+
3805+
/**
3806+
* The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure.
3807+
* Available only in secure contexts.
3808+
*
3809+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError)
3810+
*/
3811+
interface GPUPipelineError extends DOMException {
3812+
/**
3813+
* The **`reason`** read-only property of the GPUPipelineError interface defines the reason the pipeline creation failed in a machine-readable way.
3814+
*
3815+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError/reason)
3816+
*/
3817+
readonly reason: GPUPipelineErrorReason;
3818+
}
3819+
3820+
declare var GPUPipelineError: {
3821+
prototype: GPUPipelineError;
3822+
new(message: string, options: GPUPipelineErrorInit): GPUPipelineError;
3823+
};
3824+
37963825
interface GenericTransformStream {
37973826
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */
37983827
readonly readable: ReadableStream;
@@ -11222,6 +11251,7 @@ type FileSystemHandleKind = "directory" | "file";
1122211251
type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
1122311252
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
1122411253
type FontFaceSetLoadStatus = "loaded" | "loading";
11254+
type GPUPipelineErrorReason = "internal" | "validation";
1122511255
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";
1122611256
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
1122711257
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";

baselines/ts5.5/webworker.generated.d.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,10 @@ interface FontFaceSetLoadEventInit extends EventInit {
352352
fontfaces?: FontFace[];
353353
}
354354

355+
interface GPUPipelineErrorInit {
356+
reason: GPUPipelineErrorReason;
357+
}
358+
355359
interface GetNotificationOptions {
356360
tag?: string;
357361
}
@@ -4802,6 +4806,31 @@ interface GPUError {
48024806
readonly message: string;
48034807
}
48044808

4809+
declare var GPUError: {
4810+
prototype: GPUError;
4811+
new(): GPUError;
4812+
};
4813+
4814+
/**
4815+
* The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure.
4816+
* Available only in secure contexts.
4817+
*
4818+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError)
4819+
*/
4820+
interface GPUPipelineError extends DOMException {
4821+
/**
4822+
* The **`reason`** read-only property of the GPUPipelineError interface defines the reason the pipeline creation failed in a machine-readable way.
4823+
*
4824+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError/reason)
4825+
*/
4826+
readonly reason: GPUPipelineErrorReason;
4827+
}
4828+
4829+
declare var GPUPipelineError: {
4830+
prototype: GPUPipelineError;
4831+
new(message: string, options: GPUPipelineErrorInit): GPUPipelineError;
4832+
};
4833+
48054834
interface GenericTransformStream {
48064835
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */
48074836
readonly readable: ReadableStream;
@@ -13202,6 +13231,7 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
1320213231
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
1320313232
type FontFaceSetLoadStatus = "loaded" | "loading";
1320413233
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
13234+
type GPUPipelineErrorReason = "internal" | "validation";
1320513235
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";
1320613236
type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software";
1320713237
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";

0 commit comments

Comments
 (0)