@@ -352,6 +352,10 @@ interface FontFaceSetLoadEventInit extends EventInit {
352
352
fontfaces?: FontFace[];
353
353
}
354
354
355
+ interface GPUPipelineErrorInit {
356
+ reason: GPUPipelineErrorReason;
357
+ }
358
+
355
359
interface GetNotificationOptions {
356
360
tag?: string;
357
361
}
@@ -4802,6 +4806,31 @@ interface GPUError {
4802
4806
readonly message: string;
4803
4807
}
4804
4808
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
+
4805
4834
interface GenericTransformStream {
4806
4835
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */
4807
4836
readonly readable: ReadableStream;
@@ -13202,6 +13231,7 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
13202
13231
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
13203
13232
type FontFaceSetLoadStatus = "loaded" | "loading";
13204
13233
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
13234
+ type GPUPipelineErrorReason = "internal" | "validation";
13205
13235
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";
13206
13236
type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software";
13207
13237
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
0 commit comments