@@ -352,6 +352,10 @@ interface FontFaceSetLoadEventInit extends EventInit {
352352 fontfaces?: FontFace[];
353353}
354354
355+ interface GPUPipelineErrorInit {
356+ reason: GPUPipelineErrorReason;
357+ }
358+
355359interface 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+
48054834interface 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";
1320213231type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
1320313232type FontFaceSetLoadStatus = "loaded" | "loading";
1320413233type FrameType = "auxiliary" | "nested" | "none" | "top-level";
13234+ type GPUPipelineErrorReason = "internal" | "validation";
1320513235type 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";
1320613236type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software";
1320713237type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
0 commit comments