From f875e8e1fab8d7cf5131a1f3cbcb806514a26f48 Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Sun, 11 Jan 2026 15:52:01 +0100 Subject: [PATCH] Add GPUCompilationInfo --- baselines/dom.generated.d.ts | 71 ++++++++++++++++++++ baselines/serviceworker.generated.d.ts | 71 ++++++++++++++++++++ baselines/sharedworker.generated.d.ts | 71 ++++++++++++++++++++ baselines/ts5.5/dom.generated.d.ts | 71 ++++++++++++++++++++ baselines/ts5.5/serviceworker.generated.d.ts | 71 ++++++++++++++++++++ baselines/ts5.5/sharedworker.generated.d.ts | 71 ++++++++++++++++++++ baselines/ts5.5/webworker.generated.d.ts | 71 ++++++++++++++++++++ baselines/ts5.6/dom.generated.d.ts | 71 ++++++++++++++++++++ baselines/ts5.6/serviceworker.generated.d.ts | 71 ++++++++++++++++++++ baselines/ts5.6/sharedworker.generated.d.ts | 71 ++++++++++++++++++++ baselines/ts5.6/webworker.generated.d.ts | 71 ++++++++++++++++++++ baselines/ts5.9/dom.generated.d.ts | 71 ++++++++++++++++++++ baselines/ts5.9/serviceworker.generated.d.ts | 71 ++++++++++++++++++++ baselines/ts5.9/sharedworker.generated.d.ts | 71 ++++++++++++++++++++ baselines/ts5.9/webworker.generated.d.ts | 71 ++++++++++++++++++++ baselines/webworker.generated.d.ts | 71 ++++++++++++++++++++ inputfiles/overridingTypes.jsonc | 6 -- 17 files changed, 1136 insertions(+), 6 deletions(-) diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 2ac414662..36e375616 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -14762,6 +14762,76 @@ declare var GPUCommandBuffer: { new(): GPUCommandBuffer; }; +/** + * The **`GPUCompilationInfo`** interface of the WebGPU API represents an array of GPUCompilationMessage objects generated by the GPU shader module compiler to help diagnose problems with shader code. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo) + */ +interface GPUCompilationInfo { + /** + * The **`messages`** read-only property of the GPUCompilationInfo interface is an array of GPUCompilationMessage objects, each one containing the details of an individual shader compilation message. Messages can be informational, warnings, or errors. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages) + */ + readonly messages: ReadonlyArray; +} + +declare var GPUCompilationInfo: { + prototype: GPUCompilationInfo; + new(): GPUCompilationInfo; +}; + +/** + * The **`GPUCompilationMessage`** interface of the WebGPU API represents a single informational, warning, or error message generated by the GPU shader module compiler. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage) + */ +interface GPUCompilationMessage { + /** + * The **`length`** read-only property of the GPUCompilationMessage interface is a number representing the length of the substring that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length) + */ + readonly length: number; + /** + * The **`lineNum`** read-only property of the GPUCompilationMessage interface is a number representing the line number in the shader code that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum) + */ + readonly lineNum: number; + /** + * The **`linePos`** read-only property of the GPUCompilationMessage interface is a number representing the position in the code line that the message corresponds to. This could be an exact point, or the start of the relevant substring. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos) + */ + readonly linePos: number; + /** + * The **`message`** read-only property of the GPUCompilationMessage interface is a string representing human-readable message text. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message) + */ + readonly message: string; + /** + * The **`offset`** read-only property of the GPUCompilationMessage interface is a number representing the offset from the start of the shader code to the exact point, or the start of the relevant substring, that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset) + */ + readonly offset: number; + /** + * The **`type`** read-only property of the GPUCompilationMessage interface is an enumerated value representing the type of the message. Each type represents a different severity level. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type) + */ + readonly type: GPUCompilationMessageType; +} + +declare var GPUCompilationMessage: { + prototype: GPUCompilationMessage; + new(): GPUCompilationMessage; +}; + /** * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder. * Available only in secure contexts. @@ -43015,6 +43085,7 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; type FullscreenNavigationUI = "auto" | "hide" | "show"; +type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; type GPUTextureAspect = "all" | "depth-only" | "stencil-only"; diff --git a/baselines/serviceworker.generated.d.ts b/baselines/serviceworker.generated.d.ts index 01888a982..d8a39e4ea 100644 --- a/baselines/serviceworker.generated.d.ts +++ b/baselines/serviceworker.generated.d.ts @@ -4239,6 +4239,76 @@ declare var GPUCommandBuffer: { new(): GPUCommandBuffer; }; +/** + * The **`GPUCompilationInfo`** interface of the WebGPU API represents an array of GPUCompilationMessage objects generated by the GPU shader module compiler to help diagnose problems with shader code. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo) + */ +interface GPUCompilationInfo { + /** + * The **`messages`** read-only property of the GPUCompilationInfo interface is an array of GPUCompilationMessage objects, each one containing the details of an individual shader compilation message. Messages can be informational, warnings, or errors. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages) + */ + readonly messages: ReadonlyArray; +} + +declare var GPUCompilationInfo: { + prototype: GPUCompilationInfo; + new(): GPUCompilationInfo; +}; + +/** + * The **`GPUCompilationMessage`** interface of the WebGPU API represents a single informational, warning, or error message generated by the GPU shader module compiler. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage) + */ +interface GPUCompilationMessage { + /** + * The **`length`** read-only property of the GPUCompilationMessage interface is a number representing the length of the substring that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length) + */ + readonly length: number; + /** + * The **`lineNum`** read-only property of the GPUCompilationMessage interface is a number representing the line number in the shader code that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum) + */ + readonly lineNum: number; + /** + * The **`linePos`** read-only property of the GPUCompilationMessage interface is a number representing the position in the code line that the message corresponds to. This could be an exact point, or the start of the relevant substring. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos) + */ + readonly linePos: number; + /** + * The **`message`** read-only property of the GPUCompilationMessage interface is a string representing human-readable message text. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message) + */ + readonly message: string; + /** + * The **`offset`** read-only property of the GPUCompilationMessage interface is a number representing the offset from the start of the shader code to the exact point, or the start of the relevant substring, that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset) + */ + readonly offset: number; + /** + * The **`type`** read-only property of the GPUCompilationMessage interface is an enumerated value representing the type of the message. Each type represents a different severity level. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type) + */ + readonly type: GPUCompilationMessageType; +} + +declare var GPUCompilationMessage: { + prototype: GPUCompilationMessage; + new(): GPUCompilationMessage; +}; + /** * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder. * Available only in secure contexts. @@ -12249,6 +12319,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 GPUCompilationMessageType = "error" | "info" | "warning"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; type GPUTextureAspect = "all" | "depth-only" | "stencil-only"; diff --git a/baselines/sharedworker.generated.d.ts b/baselines/sharedworker.generated.d.ts index a9574a612..478b5c0a8 100644 --- a/baselines/sharedworker.generated.d.ts +++ b/baselines/sharedworker.generated.d.ts @@ -3922,6 +3922,76 @@ declare var GPUCommandBuffer: { new(): GPUCommandBuffer; }; +/** + * The **`GPUCompilationInfo`** interface of the WebGPU API represents an array of GPUCompilationMessage objects generated by the GPU shader module compiler to help diagnose problems with shader code. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo) + */ +interface GPUCompilationInfo { + /** + * The **`messages`** read-only property of the GPUCompilationInfo interface is an array of GPUCompilationMessage objects, each one containing the details of an individual shader compilation message. Messages can be informational, warnings, or errors. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages) + */ + readonly messages: ReadonlyArray; +} + +declare var GPUCompilationInfo: { + prototype: GPUCompilationInfo; + new(): GPUCompilationInfo; +}; + +/** + * The **`GPUCompilationMessage`** interface of the WebGPU API represents a single informational, warning, or error message generated by the GPU shader module compiler. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage) + */ +interface GPUCompilationMessage { + /** + * The **`length`** read-only property of the GPUCompilationMessage interface is a number representing the length of the substring that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length) + */ + readonly length: number; + /** + * The **`lineNum`** read-only property of the GPUCompilationMessage interface is a number representing the line number in the shader code that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum) + */ + readonly lineNum: number; + /** + * The **`linePos`** read-only property of the GPUCompilationMessage interface is a number representing the position in the code line that the message corresponds to. This could be an exact point, or the start of the relevant substring. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos) + */ + readonly linePos: number; + /** + * The **`message`** read-only property of the GPUCompilationMessage interface is a string representing human-readable message text. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message) + */ + readonly message: string; + /** + * The **`offset`** read-only property of the GPUCompilationMessage interface is a number representing the offset from the start of the shader code to the exact point, or the start of the relevant substring, that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset) + */ + readonly offset: number; + /** + * The **`type`** read-only property of the GPUCompilationMessage interface is an enumerated value representing the type of the message. Each type represents a different severity level. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type) + */ + readonly type: GPUCompilationMessageType; +} + +declare var GPUCompilationMessage: { + prototype: GPUCompilationMessage; + new(): GPUCompilationMessage; +}; + /** * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder. * Available only in secure contexts. @@ -11928,6 +11998,7 @@ type FileSystemHandleKind = "directory" | "file"; type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; +type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; type GPUTextureAspect = "all" | "depth-only" | "stencil-only"; diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index bef06c882..4c132120e 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -14748,6 +14748,76 @@ declare var GPUCommandBuffer: { new(): GPUCommandBuffer; }; +/** + * The **`GPUCompilationInfo`** interface of the WebGPU API represents an array of GPUCompilationMessage objects generated by the GPU shader module compiler to help diagnose problems with shader code. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo) + */ +interface GPUCompilationInfo { + /** + * The **`messages`** read-only property of the GPUCompilationInfo interface is an array of GPUCompilationMessage objects, each one containing the details of an individual shader compilation message. Messages can be informational, warnings, or errors. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages) + */ + readonly messages: ReadonlyArray; +} + +declare var GPUCompilationInfo: { + prototype: GPUCompilationInfo; + new(): GPUCompilationInfo; +}; + +/** + * The **`GPUCompilationMessage`** interface of the WebGPU API represents a single informational, warning, or error message generated by the GPU shader module compiler. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage) + */ +interface GPUCompilationMessage { + /** + * The **`length`** read-only property of the GPUCompilationMessage interface is a number representing the length of the substring that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length) + */ + readonly length: number; + /** + * The **`lineNum`** read-only property of the GPUCompilationMessage interface is a number representing the line number in the shader code that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum) + */ + readonly lineNum: number; + /** + * The **`linePos`** read-only property of the GPUCompilationMessage interface is a number representing the position in the code line that the message corresponds to. This could be an exact point, or the start of the relevant substring. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos) + */ + readonly linePos: number; + /** + * The **`message`** read-only property of the GPUCompilationMessage interface is a string representing human-readable message text. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message) + */ + readonly message: string; + /** + * The **`offset`** read-only property of the GPUCompilationMessage interface is a number representing the offset from the start of the shader code to the exact point, or the start of the relevant substring, that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset) + */ + readonly offset: number; + /** + * The **`type`** read-only property of the GPUCompilationMessage interface is an enumerated value representing the type of the message. Each type represents a different severity level. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type) + */ + readonly type: GPUCompilationMessageType; +} + +declare var GPUCompilationMessage: { + prototype: GPUCompilationMessage; + new(): GPUCompilationMessage; +}; + /** * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder. * Available only in secure contexts. @@ -42989,6 +43059,7 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; type FullscreenNavigationUI = "auto" | "hide" | "show"; +type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; type GPUTextureAspect = "all" | "depth-only" | "stencil-only"; diff --git a/baselines/ts5.5/serviceworker.generated.d.ts b/baselines/ts5.5/serviceworker.generated.d.ts index f057f5c2b..b575592c8 100644 --- a/baselines/ts5.5/serviceworker.generated.d.ts +++ b/baselines/ts5.5/serviceworker.generated.d.ts @@ -4236,6 +4236,76 @@ declare var GPUCommandBuffer: { new(): GPUCommandBuffer; }; +/** + * The **`GPUCompilationInfo`** interface of the WebGPU API represents an array of GPUCompilationMessage objects generated by the GPU shader module compiler to help diagnose problems with shader code. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo) + */ +interface GPUCompilationInfo { + /** + * The **`messages`** read-only property of the GPUCompilationInfo interface is an array of GPUCompilationMessage objects, each one containing the details of an individual shader compilation message. Messages can be informational, warnings, or errors. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages) + */ + readonly messages: ReadonlyArray; +} + +declare var GPUCompilationInfo: { + prototype: GPUCompilationInfo; + new(): GPUCompilationInfo; +}; + +/** + * The **`GPUCompilationMessage`** interface of the WebGPU API represents a single informational, warning, or error message generated by the GPU shader module compiler. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage) + */ +interface GPUCompilationMessage { + /** + * The **`length`** read-only property of the GPUCompilationMessage interface is a number representing the length of the substring that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length) + */ + readonly length: number; + /** + * The **`lineNum`** read-only property of the GPUCompilationMessage interface is a number representing the line number in the shader code that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum) + */ + readonly lineNum: number; + /** + * The **`linePos`** read-only property of the GPUCompilationMessage interface is a number representing the position in the code line that the message corresponds to. This could be an exact point, or the start of the relevant substring. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos) + */ + readonly linePos: number; + /** + * The **`message`** read-only property of the GPUCompilationMessage interface is a string representing human-readable message text. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message) + */ + readonly message: string; + /** + * The **`offset`** read-only property of the GPUCompilationMessage interface is a number representing the offset from the start of the shader code to the exact point, or the start of the relevant substring, that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset) + */ + readonly offset: number; + /** + * The **`type`** read-only property of the GPUCompilationMessage interface is an enumerated value representing the type of the message. Each type represents a different severity level. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type) + */ + readonly type: GPUCompilationMessageType; +} + +declare var GPUCompilationMessage: { + prototype: GPUCompilationMessage; + new(): GPUCompilationMessage; +}; + /** * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder. * Available only in secure contexts. @@ -12246,6 +12316,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 GPUCompilationMessageType = "error" | "info" | "warning"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; type GPUTextureAspect = "all" | "depth-only" | "stencil-only"; diff --git a/baselines/ts5.5/sharedworker.generated.d.ts b/baselines/ts5.5/sharedworker.generated.d.ts index 13c0db662..751890686 100644 --- a/baselines/ts5.5/sharedworker.generated.d.ts +++ b/baselines/ts5.5/sharedworker.generated.d.ts @@ -3919,6 +3919,76 @@ declare var GPUCommandBuffer: { new(): GPUCommandBuffer; }; +/** + * The **`GPUCompilationInfo`** interface of the WebGPU API represents an array of GPUCompilationMessage objects generated by the GPU shader module compiler to help diagnose problems with shader code. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo) + */ +interface GPUCompilationInfo { + /** + * The **`messages`** read-only property of the GPUCompilationInfo interface is an array of GPUCompilationMessage objects, each one containing the details of an individual shader compilation message. Messages can be informational, warnings, or errors. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages) + */ + readonly messages: ReadonlyArray; +} + +declare var GPUCompilationInfo: { + prototype: GPUCompilationInfo; + new(): GPUCompilationInfo; +}; + +/** + * The **`GPUCompilationMessage`** interface of the WebGPU API represents a single informational, warning, or error message generated by the GPU shader module compiler. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage) + */ +interface GPUCompilationMessage { + /** + * The **`length`** read-only property of the GPUCompilationMessage interface is a number representing the length of the substring that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length) + */ + readonly length: number; + /** + * The **`lineNum`** read-only property of the GPUCompilationMessage interface is a number representing the line number in the shader code that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum) + */ + readonly lineNum: number; + /** + * The **`linePos`** read-only property of the GPUCompilationMessage interface is a number representing the position in the code line that the message corresponds to. This could be an exact point, or the start of the relevant substring. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos) + */ + readonly linePos: number; + /** + * The **`message`** read-only property of the GPUCompilationMessage interface is a string representing human-readable message text. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message) + */ + readonly message: string; + /** + * The **`offset`** read-only property of the GPUCompilationMessage interface is a number representing the offset from the start of the shader code to the exact point, or the start of the relevant substring, that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset) + */ + readonly offset: number; + /** + * The **`type`** read-only property of the GPUCompilationMessage interface is an enumerated value representing the type of the message. Each type represents a different severity level. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type) + */ + readonly type: GPUCompilationMessageType; +} + +declare var GPUCompilationMessage: { + prototype: GPUCompilationMessage; + new(): GPUCompilationMessage; +}; + /** * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder. * Available only in secure contexts. @@ -11925,6 +11995,7 @@ type FileSystemHandleKind = "directory" | "file"; type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; +type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; type GPUTextureAspect = "all" | "depth-only" | "stencil-only"; diff --git a/baselines/ts5.5/webworker.generated.d.ts b/baselines/ts5.5/webworker.generated.d.ts index f162ba299..70c69047b 100644 --- a/baselines/ts5.5/webworker.generated.d.ts +++ b/baselines/ts5.5/webworker.generated.d.ts @@ -4938,6 +4938,76 @@ declare var GPUCommandBuffer: { new(): GPUCommandBuffer; }; +/** + * The **`GPUCompilationInfo`** interface of the WebGPU API represents an array of GPUCompilationMessage objects generated by the GPU shader module compiler to help diagnose problems with shader code. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo) + */ +interface GPUCompilationInfo { + /** + * The **`messages`** read-only property of the GPUCompilationInfo interface is an array of GPUCompilationMessage objects, each one containing the details of an individual shader compilation message. Messages can be informational, warnings, or errors. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages) + */ + readonly messages: ReadonlyArray; +} + +declare var GPUCompilationInfo: { + prototype: GPUCompilationInfo; + new(): GPUCompilationInfo; +}; + +/** + * The **`GPUCompilationMessage`** interface of the WebGPU API represents a single informational, warning, or error message generated by the GPU shader module compiler. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage) + */ +interface GPUCompilationMessage { + /** + * The **`length`** read-only property of the GPUCompilationMessage interface is a number representing the length of the substring that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length) + */ + readonly length: number; + /** + * The **`lineNum`** read-only property of the GPUCompilationMessage interface is a number representing the line number in the shader code that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum) + */ + readonly lineNum: number; + /** + * The **`linePos`** read-only property of the GPUCompilationMessage interface is a number representing the position in the code line that the message corresponds to. This could be an exact point, or the start of the relevant substring. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos) + */ + readonly linePos: number; + /** + * The **`message`** read-only property of the GPUCompilationMessage interface is a string representing human-readable message text. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message) + */ + readonly message: string; + /** + * The **`offset`** read-only property of the GPUCompilationMessage interface is a number representing the offset from the start of the shader code to the exact point, or the start of the relevant substring, that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset) + */ + readonly offset: number; + /** + * The **`type`** read-only property of the GPUCompilationMessage interface is an enumerated value representing the type of the message. Each type represents a different severity level. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type) + */ + readonly type: GPUCompilationMessageType; +} + +declare var GPUCompilationMessage: { + prototype: GPUCompilationMessage; + new(): GPUCompilationMessage; +}; + /** * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder. * Available only in secure contexts. @@ -13932,6 +14002,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 GPUCompilationMessageType = "error" | "info" | "warning"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; type GPUTextureAspect = "all" | "depth-only" | "stencil-only"; diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index 923cb68a3..365007fca 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -14759,6 +14759,76 @@ declare var GPUCommandBuffer: { new(): GPUCommandBuffer; }; +/** + * The **`GPUCompilationInfo`** interface of the WebGPU API represents an array of GPUCompilationMessage objects generated by the GPU shader module compiler to help diagnose problems with shader code. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo) + */ +interface GPUCompilationInfo { + /** + * The **`messages`** read-only property of the GPUCompilationInfo interface is an array of GPUCompilationMessage objects, each one containing the details of an individual shader compilation message. Messages can be informational, warnings, or errors. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages) + */ + readonly messages: ReadonlyArray; +} + +declare var GPUCompilationInfo: { + prototype: GPUCompilationInfo; + new(): GPUCompilationInfo; +}; + +/** + * The **`GPUCompilationMessage`** interface of the WebGPU API represents a single informational, warning, or error message generated by the GPU shader module compiler. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage) + */ +interface GPUCompilationMessage { + /** + * The **`length`** read-only property of the GPUCompilationMessage interface is a number representing the length of the substring that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length) + */ + readonly length: number; + /** + * The **`lineNum`** read-only property of the GPUCompilationMessage interface is a number representing the line number in the shader code that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum) + */ + readonly lineNum: number; + /** + * The **`linePos`** read-only property of the GPUCompilationMessage interface is a number representing the position in the code line that the message corresponds to. This could be an exact point, or the start of the relevant substring. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos) + */ + readonly linePos: number; + /** + * The **`message`** read-only property of the GPUCompilationMessage interface is a string representing human-readable message text. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message) + */ + readonly message: string; + /** + * The **`offset`** read-only property of the GPUCompilationMessage interface is a number representing the offset from the start of the shader code to the exact point, or the start of the relevant substring, that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset) + */ + readonly offset: number; + /** + * The **`type`** read-only property of the GPUCompilationMessage interface is an enumerated value representing the type of the message. Each type represents a different severity level. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type) + */ + readonly type: GPUCompilationMessageType; +} + +declare var GPUCompilationMessage: { + prototype: GPUCompilationMessage; + new(): GPUCompilationMessage; +}; + /** * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder. * Available only in secure contexts. @@ -43012,6 +43082,7 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; type FullscreenNavigationUI = "auto" | "hide" | "show"; +type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; type GPUTextureAspect = "all" | "depth-only" | "stencil-only"; diff --git a/baselines/ts5.6/serviceworker.generated.d.ts b/baselines/ts5.6/serviceworker.generated.d.ts index f057f5c2b..b575592c8 100644 --- a/baselines/ts5.6/serviceworker.generated.d.ts +++ b/baselines/ts5.6/serviceworker.generated.d.ts @@ -4236,6 +4236,76 @@ declare var GPUCommandBuffer: { new(): GPUCommandBuffer; }; +/** + * The **`GPUCompilationInfo`** interface of the WebGPU API represents an array of GPUCompilationMessage objects generated by the GPU shader module compiler to help diagnose problems with shader code. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo) + */ +interface GPUCompilationInfo { + /** + * The **`messages`** read-only property of the GPUCompilationInfo interface is an array of GPUCompilationMessage objects, each one containing the details of an individual shader compilation message. Messages can be informational, warnings, or errors. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages) + */ + readonly messages: ReadonlyArray; +} + +declare var GPUCompilationInfo: { + prototype: GPUCompilationInfo; + new(): GPUCompilationInfo; +}; + +/** + * The **`GPUCompilationMessage`** interface of the WebGPU API represents a single informational, warning, or error message generated by the GPU shader module compiler. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage) + */ +interface GPUCompilationMessage { + /** + * The **`length`** read-only property of the GPUCompilationMessage interface is a number representing the length of the substring that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length) + */ + readonly length: number; + /** + * The **`lineNum`** read-only property of the GPUCompilationMessage interface is a number representing the line number in the shader code that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum) + */ + readonly lineNum: number; + /** + * The **`linePos`** read-only property of the GPUCompilationMessage interface is a number representing the position in the code line that the message corresponds to. This could be an exact point, or the start of the relevant substring. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos) + */ + readonly linePos: number; + /** + * The **`message`** read-only property of the GPUCompilationMessage interface is a string representing human-readable message text. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message) + */ + readonly message: string; + /** + * The **`offset`** read-only property of the GPUCompilationMessage interface is a number representing the offset from the start of the shader code to the exact point, or the start of the relevant substring, that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset) + */ + readonly offset: number; + /** + * The **`type`** read-only property of the GPUCompilationMessage interface is an enumerated value representing the type of the message. Each type represents a different severity level. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type) + */ + readonly type: GPUCompilationMessageType; +} + +declare var GPUCompilationMessage: { + prototype: GPUCompilationMessage; + new(): GPUCompilationMessage; +}; + /** * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder. * Available only in secure contexts. @@ -12246,6 +12316,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 GPUCompilationMessageType = "error" | "info" | "warning"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; type GPUTextureAspect = "all" | "depth-only" | "stencil-only"; diff --git a/baselines/ts5.6/sharedworker.generated.d.ts b/baselines/ts5.6/sharedworker.generated.d.ts index 13c0db662..751890686 100644 --- a/baselines/ts5.6/sharedworker.generated.d.ts +++ b/baselines/ts5.6/sharedworker.generated.d.ts @@ -3919,6 +3919,76 @@ declare var GPUCommandBuffer: { new(): GPUCommandBuffer; }; +/** + * The **`GPUCompilationInfo`** interface of the WebGPU API represents an array of GPUCompilationMessage objects generated by the GPU shader module compiler to help diagnose problems with shader code. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo) + */ +interface GPUCompilationInfo { + /** + * The **`messages`** read-only property of the GPUCompilationInfo interface is an array of GPUCompilationMessage objects, each one containing the details of an individual shader compilation message. Messages can be informational, warnings, or errors. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages) + */ + readonly messages: ReadonlyArray; +} + +declare var GPUCompilationInfo: { + prototype: GPUCompilationInfo; + new(): GPUCompilationInfo; +}; + +/** + * The **`GPUCompilationMessage`** interface of the WebGPU API represents a single informational, warning, or error message generated by the GPU shader module compiler. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage) + */ +interface GPUCompilationMessage { + /** + * The **`length`** read-only property of the GPUCompilationMessage interface is a number representing the length of the substring that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length) + */ + readonly length: number; + /** + * The **`lineNum`** read-only property of the GPUCompilationMessage interface is a number representing the line number in the shader code that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum) + */ + readonly lineNum: number; + /** + * The **`linePos`** read-only property of the GPUCompilationMessage interface is a number representing the position in the code line that the message corresponds to. This could be an exact point, or the start of the relevant substring. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos) + */ + readonly linePos: number; + /** + * The **`message`** read-only property of the GPUCompilationMessage interface is a string representing human-readable message text. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message) + */ + readonly message: string; + /** + * The **`offset`** read-only property of the GPUCompilationMessage interface is a number representing the offset from the start of the shader code to the exact point, or the start of the relevant substring, that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset) + */ + readonly offset: number; + /** + * The **`type`** read-only property of the GPUCompilationMessage interface is an enumerated value representing the type of the message. Each type represents a different severity level. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type) + */ + readonly type: GPUCompilationMessageType; +} + +declare var GPUCompilationMessage: { + prototype: GPUCompilationMessage; + new(): GPUCompilationMessage; +}; + /** * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder. * Available only in secure contexts. @@ -11925,6 +11995,7 @@ type FileSystemHandleKind = "directory" | "file"; type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; +type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; type GPUTextureAspect = "all" | "depth-only" | "stencil-only"; diff --git a/baselines/ts5.6/webworker.generated.d.ts b/baselines/ts5.6/webworker.generated.d.ts index f162ba299..70c69047b 100644 --- a/baselines/ts5.6/webworker.generated.d.ts +++ b/baselines/ts5.6/webworker.generated.d.ts @@ -4938,6 +4938,76 @@ declare var GPUCommandBuffer: { new(): GPUCommandBuffer; }; +/** + * The **`GPUCompilationInfo`** interface of the WebGPU API represents an array of GPUCompilationMessage objects generated by the GPU shader module compiler to help diagnose problems with shader code. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo) + */ +interface GPUCompilationInfo { + /** + * The **`messages`** read-only property of the GPUCompilationInfo interface is an array of GPUCompilationMessage objects, each one containing the details of an individual shader compilation message. Messages can be informational, warnings, or errors. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages) + */ + readonly messages: ReadonlyArray; +} + +declare var GPUCompilationInfo: { + prototype: GPUCompilationInfo; + new(): GPUCompilationInfo; +}; + +/** + * The **`GPUCompilationMessage`** interface of the WebGPU API represents a single informational, warning, or error message generated by the GPU shader module compiler. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage) + */ +interface GPUCompilationMessage { + /** + * The **`length`** read-only property of the GPUCompilationMessage interface is a number representing the length of the substring that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length) + */ + readonly length: number; + /** + * The **`lineNum`** read-only property of the GPUCompilationMessage interface is a number representing the line number in the shader code that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum) + */ + readonly lineNum: number; + /** + * The **`linePos`** read-only property of the GPUCompilationMessage interface is a number representing the position in the code line that the message corresponds to. This could be an exact point, or the start of the relevant substring. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos) + */ + readonly linePos: number; + /** + * The **`message`** read-only property of the GPUCompilationMessage interface is a string representing human-readable message text. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message) + */ + readonly message: string; + /** + * The **`offset`** read-only property of the GPUCompilationMessage interface is a number representing the offset from the start of the shader code to the exact point, or the start of the relevant substring, that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset) + */ + readonly offset: number; + /** + * The **`type`** read-only property of the GPUCompilationMessage interface is an enumerated value representing the type of the message. Each type represents a different severity level. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type) + */ + readonly type: GPUCompilationMessageType; +} + +declare var GPUCompilationMessage: { + prototype: GPUCompilationMessage; + new(): GPUCompilationMessage; +}; + /** * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder. * Available only in secure contexts. @@ -13932,6 +14002,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 GPUCompilationMessageType = "error" | "info" | "warning"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; type GPUTextureAspect = "all" | "depth-only" | "stencil-only"; diff --git a/baselines/ts5.9/dom.generated.d.ts b/baselines/ts5.9/dom.generated.d.ts index 8722f7439..96f5374ec 100644 --- a/baselines/ts5.9/dom.generated.d.ts +++ b/baselines/ts5.9/dom.generated.d.ts @@ -14759,6 +14759,76 @@ declare var GPUCommandBuffer: { new(): GPUCommandBuffer; }; +/** + * The **`GPUCompilationInfo`** interface of the WebGPU API represents an array of GPUCompilationMessage objects generated by the GPU shader module compiler to help diagnose problems with shader code. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo) + */ +interface GPUCompilationInfo { + /** + * The **`messages`** read-only property of the GPUCompilationInfo interface is an array of GPUCompilationMessage objects, each one containing the details of an individual shader compilation message. Messages can be informational, warnings, or errors. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages) + */ + readonly messages: ReadonlyArray; +} + +declare var GPUCompilationInfo: { + prototype: GPUCompilationInfo; + new(): GPUCompilationInfo; +}; + +/** + * The **`GPUCompilationMessage`** interface of the WebGPU API represents a single informational, warning, or error message generated by the GPU shader module compiler. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage) + */ +interface GPUCompilationMessage { + /** + * The **`length`** read-only property of the GPUCompilationMessage interface is a number representing the length of the substring that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length) + */ + readonly length: number; + /** + * The **`lineNum`** read-only property of the GPUCompilationMessage interface is a number representing the line number in the shader code that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum) + */ + readonly lineNum: number; + /** + * The **`linePos`** read-only property of the GPUCompilationMessage interface is a number representing the position in the code line that the message corresponds to. This could be an exact point, or the start of the relevant substring. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos) + */ + readonly linePos: number; + /** + * The **`message`** read-only property of the GPUCompilationMessage interface is a string representing human-readable message text. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message) + */ + readonly message: string; + /** + * The **`offset`** read-only property of the GPUCompilationMessage interface is a number representing the offset from the start of the shader code to the exact point, or the start of the relevant substring, that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset) + */ + readonly offset: number; + /** + * The **`type`** read-only property of the GPUCompilationMessage interface is an enumerated value representing the type of the message. Each type represents a different severity level. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type) + */ + readonly type: GPUCompilationMessageType; +} + +declare var GPUCompilationMessage: { + prototype: GPUCompilationMessage; + new(): GPUCompilationMessage; +}; + /** * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder. * Available only in secure contexts. @@ -43012,6 +43082,7 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; type FullscreenNavigationUI = "auto" | "hide" | "show"; +type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; type GPUTextureAspect = "all" | "depth-only" | "stencil-only"; diff --git a/baselines/ts5.9/serviceworker.generated.d.ts b/baselines/ts5.9/serviceworker.generated.d.ts index 930ba58a9..ef86cc639 100644 --- a/baselines/ts5.9/serviceworker.generated.d.ts +++ b/baselines/ts5.9/serviceworker.generated.d.ts @@ -4236,6 +4236,76 @@ declare var GPUCommandBuffer: { new(): GPUCommandBuffer; }; +/** + * The **`GPUCompilationInfo`** interface of the WebGPU API represents an array of GPUCompilationMessage objects generated by the GPU shader module compiler to help diagnose problems with shader code. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo) + */ +interface GPUCompilationInfo { + /** + * The **`messages`** read-only property of the GPUCompilationInfo interface is an array of GPUCompilationMessage objects, each one containing the details of an individual shader compilation message. Messages can be informational, warnings, or errors. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages) + */ + readonly messages: ReadonlyArray; +} + +declare var GPUCompilationInfo: { + prototype: GPUCompilationInfo; + new(): GPUCompilationInfo; +}; + +/** + * The **`GPUCompilationMessage`** interface of the WebGPU API represents a single informational, warning, or error message generated by the GPU shader module compiler. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage) + */ +interface GPUCompilationMessage { + /** + * The **`length`** read-only property of the GPUCompilationMessage interface is a number representing the length of the substring that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length) + */ + readonly length: number; + /** + * The **`lineNum`** read-only property of the GPUCompilationMessage interface is a number representing the line number in the shader code that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum) + */ + readonly lineNum: number; + /** + * The **`linePos`** read-only property of the GPUCompilationMessage interface is a number representing the position in the code line that the message corresponds to. This could be an exact point, or the start of the relevant substring. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos) + */ + readonly linePos: number; + /** + * The **`message`** read-only property of the GPUCompilationMessage interface is a string representing human-readable message text. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message) + */ + readonly message: string; + /** + * The **`offset`** read-only property of the GPUCompilationMessage interface is a number representing the offset from the start of the shader code to the exact point, or the start of the relevant substring, that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset) + */ + readonly offset: number; + /** + * The **`type`** read-only property of the GPUCompilationMessage interface is an enumerated value representing the type of the message. Each type represents a different severity level. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type) + */ + readonly type: GPUCompilationMessageType; +} + +declare var GPUCompilationMessage: { + prototype: GPUCompilationMessage; + new(): GPUCompilationMessage; +}; + /** * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder. * Available only in secure contexts. @@ -12246,6 +12316,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 GPUCompilationMessageType = "error" | "info" | "warning"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; type GPUTextureAspect = "all" | "depth-only" | "stencil-only"; diff --git a/baselines/ts5.9/sharedworker.generated.d.ts b/baselines/ts5.9/sharedworker.generated.d.ts index 05c9e481c..c92e80b55 100644 --- a/baselines/ts5.9/sharedworker.generated.d.ts +++ b/baselines/ts5.9/sharedworker.generated.d.ts @@ -3919,6 +3919,76 @@ declare var GPUCommandBuffer: { new(): GPUCommandBuffer; }; +/** + * The **`GPUCompilationInfo`** interface of the WebGPU API represents an array of GPUCompilationMessage objects generated by the GPU shader module compiler to help diagnose problems with shader code. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo) + */ +interface GPUCompilationInfo { + /** + * The **`messages`** read-only property of the GPUCompilationInfo interface is an array of GPUCompilationMessage objects, each one containing the details of an individual shader compilation message. Messages can be informational, warnings, or errors. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages) + */ + readonly messages: ReadonlyArray; +} + +declare var GPUCompilationInfo: { + prototype: GPUCompilationInfo; + new(): GPUCompilationInfo; +}; + +/** + * The **`GPUCompilationMessage`** interface of the WebGPU API represents a single informational, warning, or error message generated by the GPU shader module compiler. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage) + */ +interface GPUCompilationMessage { + /** + * The **`length`** read-only property of the GPUCompilationMessage interface is a number representing the length of the substring that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length) + */ + readonly length: number; + /** + * The **`lineNum`** read-only property of the GPUCompilationMessage interface is a number representing the line number in the shader code that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum) + */ + readonly lineNum: number; + /** + * The **`linePos`** read-only property of the GPUCompilationMessage interface is a number representing the position in the code line that the message corresponds to. This could be an exact point, or the start of the relevant substring. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos) + */ + readonly linePos: number; + /** + * The **`message`** read-only property of the GPUCompilationMessage interface is a string representing human-readable message text. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message) + */ + readonly message: string; + /** + * The **`offset`** read-only property of the GPUCompilationMessage interface is a number representing the offset from the start of the shader code to the exact point, or the start of the relevant substring, that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset) + */ + readonly offset: number; + /** + * The **`type`** read-only property of the GPUCompilationMessage interface is an enumerated value representing the type of the message. Each type represents a different severity level. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type) + */ + readonly type: GPUCompilationMessageType; +} + +declare var GPUCompilationMessage: { + prototype: GPUCompilationMessage; + new(): GPUCompilationMessage; +}; + /** * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder. * Available only in secure contexts. @@ -11925,6 +11995,7 @@ type FileSystemHandleKind = "directory" | "file"; type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; +type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; type GPUTextureAspect = "all" | "depth-only" | "stencil-only"; diff --git a/baselines/ts5.9/webworker.generated.d.ts b/baselines/ts5.9/webworker.generated.d.ts index f4a593500..9a9d9fbc7 100644 --- a/baselines/ts5.9/webworker.generated.d.ts +++ b/baselines/ts5.9/webworker.generated.d.ts @@ -4938,6 +4938,76 @@ declare var GPUCommandBuffer: { new(): GPUCommandBuffer; }; +/** + * The **`GPUCompilationInfo`** interface of the WebGPU API represents an array of GPUCompilationMessage objects generated by the GPU shader module compiler to help diagnose problems with shader code. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo) + */ +interface GPUCompilationInfo { + /** + * The **`messages`** read-only property of the GPUCompilationInfo interface is an array of GPUCompilationMessage objects, each one containing the details of an individual shader compilation message. Messages can be informational, warnings, or errors. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages) + */ + readonly messages: ReadonlyArray; +} + +declare var GPUCompilationInfo: { + prototype: GPUCompilationInfo; + new(): GPUCompilationInfo; +}; + +/** + * The **`GPUCompilationMessage`** interface of the WebGPU API represents a single informational, warning, or error message generated by the GPU shader module compiler. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage) + */ +interface GPUCompilationMessage { + /** + * The **`length`** read-only property of the GPUCompilationMessage interface is a number representing the length of the substring that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length) + */ + readonly length: number; + /** + * The **`lineNum`** read-only property of the GPUCompilationMessage interface is a number representing the line number in the shader code that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum) + */ + readonly lineNum: number; + /** + * The **`linePos`** read-only property of the GPUCompilationMessage interface is a number representing the position in the code line that the message corresponds to. This could be an exact point, or the start of the relevant substring. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos) + */ + readonly linePos: number; + /** + * The **`message`** read-only property of the GPUCompilationMessage interface is a string representing human-readable message text. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message) + */ + readonly message: string; + /** + * The **`offset`** read-only property of the GPUCompilationMessage interface is a number representing the offset from the start of the shader code to the exact point, or the start of the relevant substring, that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset) + */ + readonly offset: number; + /** + * The **`type`** read-only property of the GPUCompilationMessage interface is an enumerated value representing the type of the message. Each type represents a different severity level. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type) + */ + readonly type: GPUCompilationMessageType; +} + +declare var GPUCompilationMessage: { + prototype: GPUCompilationMessage; + new(): GPUCompilationMessage; +}; + /** * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder. * Available only in secure contexts. @@ -13932,6 +14002,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 GPUCompilationMessageType = "error" | "info" | "warning"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; type GPUTextureAspect = "all" | "depth-only" | "stencil-only"; diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index 5362ada3e..d4294719b 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -4941,6 +4941,76 @@ declare var GPUCommandBuffer: { new(): GPUCommandBuffer; }; +/** + * The **`GPUCompilationInfo`** interface of the WebGPU API represents an array of GPUCompilationMessage objects generated by the GPU shader module compiler to help diagnose problems with shader code. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo) + */ +interface GPUCompilationInfo { + /** + * The **`messages`** read-only property of the GPUCompilationInfo interface is an array of GPUCompilationMessage objects, each one containing the details of an individual shader compilation message. Messages can be informational, warnings, or errors. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages) + */ + readonly messages: ReadonlyArray; +} + +declare var GPUCompilationInfo: { + prototype: GPUCompilationInfo; + new(): GPUCompilationInfo; +}; + +/** + * The **`GPUCompilationMessage`** interface of the WebGPU API represents a single informational, warning, or error message generated by the GPU shader module compiler. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage) + */ +interface GPUCompilationMessage { + /** + * The **`length`** read-only property of the GPUCompilationMessage interface is a number representing the length of the substring that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length) + */ + readonly length: number; + /** + * The **`lineNum`** read-only property of the GPUCompilationMessage interface is a number representing the line number in the shader code that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum) + */ + readonly lineNum: number; + /** + * The **`linePos`** read-only property of the GPUCompilationMessage interface is a number representing the position in the code line that the message corresponds to. This could be an exact point, or the start of the relevant substring. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos) + */ + readonly linePos: number; + /** + * The **`message`** read-only property of the GPUCompilationMessage interface is a string representing human-readable message text. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message) + */ + readonly message: string; + /** + * The **`offset`** read-only property of the GPUCompilationMessage interface is a number representing the offset from the start of the shader code to the exact point, or the start of the relevant substring, that the message corresponds to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset) + */ + readonly offset: number; + /** + * The **`type`** read-only property of the GPUCompilationMessage interface is an enumerated value representing the type of the message. Each type represents a different severity level. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type) + */ + readonly type: GPUCompilationMessageType; +} + +declare var GPUCompilationMessage: { + prototype: GPUCompilationMessage; + new(): GPUCompilationMessage; +}; + /** * The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder. * Available only in secure contexts. @@ -13935,6 +14005,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 GPUCompilationMessageType = "error" | "info" | "warning"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; type GPUTextureAspect = "all" | "depth-only" | "stencil-only"; diff --git a/inputfiles/overridingTypes.jsonc b/inputfiles/overridingTypes.jsonc index d967308dc..477ca64e3 100644 --- a/inputfiles/overridingTypes.jsonc +++ b/inputfiles/overridingTypes.jsonc @@ -2945,12 +2945,6 @@ "GPUCommandEncoder": { "exposed": "" }, - "GPUCompilationInfo": { - "exposed": "" - }, - "GPUCompilationMessage": { - "exposed": "" - }, "GPUComputePassEncoder": { "exposed": "" },