diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 4c6832a09..d611e454b 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -809,6 +809,10 @@ interface GPUPipelineErrorInit { reason: GPUPipelineErrorReason; } +interface GPUUncapturedErrorEventInit extends EventInit { + error: GPUError; +} + interface GainOptions extends AudioNodeOptions { gain?: number; } @@ -12558,6 +12562,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve createEvent(eventInterface: "FocusEvent"): FocusEvent; createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent; createEvent(eventInterface: "FormDataEvent"): FormDataEvent; + createEvent(eventInterface: "GPUUncapturedErrorEvent"): GPUUncapturedErrorEvent; createEvent(eventInterface: "GamepadEvent"): GamepadEvent; createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent; createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent; @@ -14700,6 +14705,88 @@ declare var FragmentDirective: { new(): FragmentDirective; }; +/** + * The **`GPUBindGroup`** interface of the WebGPU API is based on a GPUBindGroupLayout and defines a set of resources to be bound together in a group and how those resources are used in shader stages. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup) + */ +interface GPUBindGroup extends GPUObjectBase { +} + +declare var GPUBindGroup: { + prototype: GPUBindGroup; + new(): GPUBindGroup; +}; + +/** + * The **`GPUBindGroupLayout`** interface of the WebGPU API defines the structure and purpose of related GPU resources such as buffers that will be used in a pipeline, and is used as a template when creating GPUBindGroups. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroupLayout) + */ +interface GPUBindGroupLayout extends GPUObjectBase { +} + +declare var GPUBindGroupLayout: { + prototype: GPUBindGroupLayout; + new(): GPUBindGroupLayout; +}; + +/** + * The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer) + */ +interface GPUCommandBuffer extends GPUObjectBase { +} + +declare var GPUCommandBuffer: { + prototype: GPUCommandBuffer; + new(): GPUCommandBuffer; +}; + +/** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline) + */ +interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase { +} + +declare var GPUComputePipeline: { + prototype: GPUComputePipeline; + new(): GPUComputePipeline; +}; + +/** + * The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo) + */ +interface GPUDeviceLostInfo { + /** + * The **`message`** read-only property of the GPUDeviceLostInfo interface provides a human-readable message that explains why the device was lost. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message) + */ + readonly message: string; + /** + * The **`reason`** read-only property of the GPUDeviceLostInfo interface defines the reason the device was lost in a machine-readable way. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason) + */ + readonly reason: GPUDeviceLostReason; +} + +declare var GPUDeviceLostInfo: { + prototype: GPUDeviceLostInfo; + new(): GPUDeviceLostInfo; +}; + /** * The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the uncapturederror event. * Available only in secure contexts. @@ -14720,6 +14807,58 @@ declare var GPUError: { new(): GPUError; }; +/** + * The **`GPUExternalTexture`** interface of the WebGPU API represents a wrapper object containing an HTMLVideoElement snapshot that can be used as a texture in GPU rendering operations. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture) + */ +interface GPUExternalTexture extends GPUObjectBase { +} + +declare var GPUExternalTexture: { + prototype: GPUExternalTexture; + new(): GPUExternalTexture; +}; + +/** + * The **`GPUInternalError`** interface of the WebGPU API describes an application error indicating that an operation failed for a system or implementation-specific reason, even when all validation requirements were satisfied. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError) + */ +interface GPUInternalError extends GPUError { +} + +declare var GPUInternalError: { + prototype: GPUInternalError; + new(message: string): GPUInternalError; +}; + +interface GPUObjectBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */ + label: string; +} + +/** + * The **`GPUOutOfMemoryError`** interface of the WebGPU API describes an out-of-memory (oom) error indicating that there was not enough free memory to complete the requested operation. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError) + */ +interface GPUOutOfMemoryError extends GPUError { +} + +declare var GPUOutOfMemoryError: { + prototype: GPUOutOfMemoryError; + new(message: string): GPUOutOfMemoryError; +}; + +interface GPUPipelineBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */ + getBindGroupLayout(index: number): GPUBindGroupLayout; +} + /** * The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure. This is the value received when a Promise returned by a GPUDevice.createComputePipelineAsync() or GPUDevice.createRenderPipelineAsync() call rejects. * Available only in secure contexts. @@ -14740,6 +14879,125 @@ declare var GPUPipelineError: { new(message: string, options: GPUPipelineErrorInit): GPUPipelineError; }; +/** + * The **`GPUPipelineLayout`** interface of the WebGPU API defines the GPUBindGroupLayouts used by a pipeline. GPUBindGroups used with the pipeline during command encoding must have compatible GPUBindGroupLayouts. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout) + */ +interface GPUPipelineLayout extends GPUObjectBase { +} + +declare var GPUPipelineLayout: { + prototype: GPUPipelineLayout; + new(): GPUPipelineLayout; +}; + +/** + * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle) + */ +interface GPURenderBundle extends GPUObjectBase { +} + +declare var GPURenderBundle: { + prototype: GPURenderBundle; + new(): GPURenderBundle; +}; + +/** + * The **`GPURenderPipeline`** interface of the WebGPU API represents a pipeline that controls the vertex and fragment shader stages and can be used in a GPURenderPassEncoder or GPURenderBundleEncoder. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline) + */ +interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase { +} + +declare var GPURenderPipeline: { + prototype: GPURenderPipeline; + new(): GPURenderPipeline; +}; + +/** + * The **`GPUSampler`** interface of the WebGPU API represents an object that can control how shaders transform and filter texture resource data. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler) + */ +interface GPUSampler extends GPUObjectBase { +} + +declare var GPUSampler: { + prototype: GPUSampler; + new(): GPUSampler; +}; + +/** + * The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures) + */ +interface GPUSupportedFeatures { + forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void; +} + +declare var GPUSupportedFeatures: { + prototype: GPUSupportedFeatures; + new(): GPUSupportedFeatures; +}; + +/** + * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView) + */ +interface GPUTextureView extends GPUObjectBase { +} + +declare var GPUTextureView: { + prototype: GPUTextureView; + new(): GPUTextureView; +}; + +/** + * The **`GPUUncapturedErrorEvent`** interface of the WebGPU API is the event object type for the GPUDevice uncapturederror event, used for telemetry and to report unexpected errors. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent) + */ +interface GPUUncapturedErrorEvent extends Event { + /** + * The **`error`** read-only property of the GPUUncapturedErrorEvent interface is a GPUError object instance providing access to the details of the error. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error) + */ + readonly error: GPUError; +} + +declare var GPUUncapturedErrorEvent: { + prototype: GPUUncapturedErrorEvent; + new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent; +}; + +/** + * The **`GPUValidationError`** interface of the WebGPU API describes an application error indicating that an operation did not pass the WebGPU API's validation constraints. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError) + */ +interface GPUValidationError extends GPUError { +} + +declare var GPUValidationError: { + prototype: GPUValidationError; + new(message: string): GPUValidationError; +}; + /** * The **`GainNode`** interface represents a change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels. * @@ -36820,6 +37078,21 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +/** + * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures) + */ +interface WGSLLanguageFeatures { + forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void; +} + +declare var WGSLLanguageFeatures: { + prototype: WGSLLanguageFeatures; + new(): WGSLLanguageFeatures; +}; + /** * The **`WakeLock`** interface of the Screen Wake Lock API can be used to request a lock that prevents device screens from dimming or locking when an application needs to keep running. * Available only in secure contexts. @@ -42572,6 +42845,7 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; type FullscreenNavigationUI = "auto" | "hide" | "show"; +type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble"; type GamepadHapticsResult = "complete" | "preempted"; @@ -42856,6 +43130,9 @@ interface FormData { values(): FormDataIterator; } +interface GPUSupportedFeatures extends ReadonlySet { +} + interface HTMLAllCollection { [Symbol.iterator](): ArrayIterator; } @@ -43161,6 +43438,9 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +interface WGSLLanguageFeatures extends ReadonlySet { +} + interface WebGL2RenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: GLfloat[], srcOffset?: number): void; diff --git a/baselines/serviceworker.generated.d.ts b/baselines/serviceworker.generated.d.ts index bc6c6517e..aa8faf177 100644 --- a/baselines/serviceworker.generated.d.ts +++ b/baselines/serviceworker.generated.d.ts @@ -276,6 +276,10 @@ interface GPUPipelineErrorInit { reason: GPUPipelineErrorReason; } +interface GPUUncapturedErrorEventInit extends EventInit { + error: GPUError; +} + interface GetNotificationOptions { tag?: string; } @@ -4178,6 +4182,88 @@ declare var FormData: { new(): FormData; }; +/** + * The **`GPUBindGroup`** interface of the WebGPU API is based on a GPUBindGroupLayout and defines a set of resources to be bound together in a group and how those resources are used in shader stages. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup) + */ +interface GPUBindGroup extends GPUObjectBase { +} + +declare var GPUBindGroup: { + prototype: GPUBindGroup; + new(): GPUBindGroup; +}; + +/** + * The **`GPUBindGroupLayout`** interface of the WebGPU API defines the structure and purpose of related GPU resources such as buffers that will be used in a pipeline, and is used as a template when creating GPUBindGroups. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroupLayout) + */ +interface GPUBindGroupLayout extends GPUObjectBase { +} + +declare var GPUBindGroupLayout: { + prototype: GPUBindGroupLayout; + new(): GPUBindGroupLayout; +}; + +/** + * The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer) + */ +interface GPUCommandBuffer extends GPUObjectBase { +} + +declare var GPUCommandBuffer: { + prototype: GPUCommandBuffer; + new(): GPUCommandBuffer; +}; + +/** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline) + */ +interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase { +} + +declare var GPUComputePipeline: { + prototype: GPUComputePipeline; + new(): GPUComputePipeline; +}; + +/** + * The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo) + */ +interface GPUDeviceLostInfo { + /** + * The **`message`** read-only property of the GPUDeviceLostInfo interface provides a human-readable message that explains why the device was lost. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message) + */ + readonly message: string; + /** + * The **`reason`** read-only property of the GPUDeviceLostInfo interface defines the reason the device was lost in a machine-readable way. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason) + */ + readonly reason: GPUDeviceLostReason; +} + +declare var GPUDeviceLostInfo: { + prototype: GPUDeviceLostInfo; + new(): GPUDeviceLostInfo; +}; + /** * The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the uncapturederror event. * Available only in secure contexts. @@ -4198,6 +4284,58 @@ declare var GPUError: { new(): GPUError; }; +/** + * The **`GPUExternalTexture`** interface of the WebGPU API represents a wrapper object containing an HTMLVideoElement snapshot that can be used as a texture in GPU rendering operations. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture) + */ +interface GPUExternalTexture extends GPUObjectBase { +} + +declare var GPUExternalTexture: { + prototype: GPUExternalTexture; + new(): GPUExternalTexture; +}; + +/** + * The **`GPUInternalError`** interface of the WebGPU API describes an application error indicating that an operation failed for a system or implementation-specific reason, even when all validation requirements were satisfied. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError) + */ +interface GPUInternalError extends GPUError { +} + +declare var GPUInternalError: { + prototype: GPUInternalError; + new(message: string): GPUInternalError; +}; + +interface GPUObjectBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */ + label: string; +} + +/** + * The **`GPUOutOfMemoryError`** interface of the WebGPU API describes an out-of-memory (oom) error indicating that there was not enough free memory to complete the requested operation. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError) + */ +interface GPUOutOfMemoryError extends GPUError { +} + +declare var GPUOutOfMemoryError: { + prototype: GPUOutOfMemoryError; + new(message: string): GPUOutOfMemoryError; +}; + +interface GPUPipelineBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */ + getBindGroupLayout(index: number): GPUBindGroupLayout; +} + /** * The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure. This is the value received when a Promise returned by a GPUDevice.createComputePipelineAsync() or GPUDevice.createRenderPipelineAsync() call rejects. * Available only in secure contexts. @@ -4218,6 +4356,125 @@ declare var GPUPipelineError: { new(message: string, options: GPUPipelineErrorInit): GPUPipelineError; }; +/** + * The **`GPUPipelineLayout`** interface of the WebGPU API defines the GPUBindGroupLayouts used by a pipeline. GPUBindGroups used with the pipeline during command encoding must have compatible GPUBindGroupLayouts. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout) + */ +interface GPUPipelineLayout extends GPUObjectBase { +} + +declare var GPUPipelineLayout: { + prototype: GPUPipelineLayout; + new(): GPUPipelineLayout; +}; + +/** + * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle) + */ +interface GPURenderBundle extends GPUObjectBase { +} + +declare var GPURenderBundle: { + prototype: GPURenderBundle; + new(): GPURenderBundle; +}; + +/** + * The **`GPURenderPipeline`** interface of the WebGPU API represents a pipeline that controls the vertex and fragment shader stages and can be used in a GPURenderPassEncoder or GPURenderBundleEncoder. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline) + */ +interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase { +} + +declare var GPURenderPipeline: { + prototype: GPURenderPipeline; + new(): GPURenderPipeline; +}; + +/** + * The **`GPUSampler`** interface of the WebGPU API represents an object that can control how shaders transform and filter texture resource data. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler) + */ +interface GPUSampler extends GPUObjectBase { +} + +declare var GPUSampler: { + prototype: GPUSampler; + new(): GPUSampler; +}; + +/** + * The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures) + */ +interface GPUSupportedFeatures { + forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void; +} + +declare var GPUSupportedFeatures: { + prototype: GPUSupportedFeatures; + new(): GPUSupportedFeatures; +}; + +/** + * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView) + */ +interface GPUTextureView extends GPUObjectBase { +} + +declare var GPUTextureView: { + prototype: GPUTextureView; + new(): GPUTextureView; +}; + +/** + * The **`GPUUncapturedErrorEvent`** interface of the WebGPU API is the event object type for the GPUDevice uncapturederror event, used for telemetry and to report unexpected errors. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent) + */ +interface GPUUncapturedErrorEvent extends Event { + /** + * The **`error`** read-only property of the GPUUncapturedErrorEvent interface is a GPUError object instance providing access to the details of the error. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error) + */ + readonly error: GPUError; +} + +declare var GPUUncapturedErrorEvent: { + prototype: GPUUncapturedErrorEvent; + new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent; +}; + +/** + * The **`GPUValidationError`** interface of the WebGPU API describes an application error indicating that an operation did not pass the WebGPU API's validation constraints. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError) + */ +interface GPUValidationError extends GPUError { +} + +declare var GPUValidationError: { + prototype: GPUValidationError; + new(message: string): GPUValidationError; +}; + interface GenericTransformStream { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */ readonly readable: ReadableStream; @@ -8238,6 +8495,21 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +/** + * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures) + */ +interface WGSLLanguageFeatures { + forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void; +} + +declare var WGSLLanguageFeatures: { + prototype: WGSLLanguageFeatures; + new(): WGSLLanguageFeatures; +}; + /** * The **`WebGL2RenderingContext`** interface provides the OpenGL ES 3.0 rendering context for the drawing surface of an HTML element. * @@ -11807,6 +12079,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 GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; @@ -11939,6 +12212,9 @@ interface FormData { values(): FormDataIterator; } +interface GPUSupportedFeatures extends ReadonlySet { +} + interface HeadersIterator extends IteratorObject { [Symbol.iterator](): HeadersIterator; } @@ -12069,6 +12345,9 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +interface WGSLLanguageFeatures extends ReadonlySet { +} + interface WebGL2RenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: GLfloat[], srcOffset?: number): void; diff --git a/baselines/sharedworker.generated.d.ts b/baselines/sharedworker.generated.d.ts index ba33dbd21..ef6e33d80 100644 --- a/baselines/sharedworker.generated.d.ts +++ b/baselines/sharedworker.generated.d.ts @@ -220,6 +220,10 @@ interface GPUPipelineErrorInit { reason: GPUPipelineErrorReason; } +interface GPUUncapturedErrorEventInit extends EventInit { + error: GPUError; +} + interface GetNotificationOptions { tag?: string; } @@ -3861,6 +3865,88 @@ declare var FormData: { new(): FormData; }; +/** + * The **`GPUBindGroup`** interface of the WebGPU API is based on a GPUBindGroupLayout and defines a set of resources to be bound together in a group and how those resources are used in shader stages. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup) + */ +interface GPUBindGroup extends GPUObjectBase { +} + +declare var GPUBindGroup: { + prototype: GPUBindGroup; + new(): GPUBindGroup; +}; + +/** + * The **`GPUBindGroupLayout`** interface of the WebGPU API defines the structure and purpose of related GPU resources such as buffers that will be used in a pipeline, and is used as a template when creating GPUBindGroups. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroupLayout) + */ +interface GPUBindGroupLayout extends GPUObjectBase { +} + +declare var GPUBindGroupLayout: { + prototype: GPUBindGroupLayout; + new(): GPUBindGroupLayout; +}; + +/** + * The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer) + */ +interface GPUCommandBuffer extends GPUObjectBase { +} + +declare var GPUCommandBuffer: { + prototype: GPUCommandBuffer; + new(): GPUCommandBuffer; +}; + +/** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline) + */ +interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase { +} + +declare var GPUComputePipeline: { + prototype: GPUComputePipeline; + new(): GPUComputePipeline; +}; + +/** + * The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo) + */ +interface GPUDeviceLostInfo { + /** + * The **`message`** read-only property of the GPUDeviceLostInfo interface provides a human-readable message that explains why the device was lost. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message) + */ + readonly message: string; + /** + * The **`reason`** read-only property of the GPUDeviceLostInfo interface defines the reason the device was lost in a machine-readable way. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason) + */ + readonly reason: GPUDeviceLostReason; +} + +declare var GPUDeviceLostInfo: { + prototype: GPUDeviceLostInfo; + new(): GPUDeviceLostInfo; +}; + /** * The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the uncapturederror event. * Available only in secure contexts. @@ -3881,6 +3967,58 @@ declare var GPUError: { new(): GPUError; }; +/** + * The **`GPUExternalTexture`** interface of the WebGPU API represents a wrapper object containing an HTMLVideoElement snapshot that can be used as a texture in GPU rendering operations. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture) + */ +interface GPUExternalTexture extends GPUObjectBase { +} + +declare var GPUExternalTexture: { + prototype: GPUExternalTexture; + new(): GPUExternalTexture; +}; + +/** + * The **`GPUInternalError`** interface of the WebGPU API describes an application error indicating that an operation failed for a system or implementation-specific reason, even when all validation requirements were satisfied. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError) + */ +interface GPUInternalError extends GPUError { +} + +declare var GPUInternalError: { + prototype: GPUInternalError; + new(message: string): GPUInternalError; +}; + +interface GPUObjectBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */ + label: string; +} + +/** + * The **`GPUOutOfMemoryError`** interface of the WebGPU API describes an out-of-memory (oom) error indicating that there was not enough free memory to complete the requested operation. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError) + */ +interface GPUOutOfMemoryError extends GPUError { +} + +declare var GPUOutOfMemoryError: { + prototype: GPUOutOfMemoryError; + new(message: string): GPUOutOfMemoryError; +}; + +interface GPUPipelineBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */ + getBindGroupLayout(index: number): GPUBindGroupLayout; +} + /** * The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure. This is the value received when a Promise returned by a GPUDevice.createComputePipelineAsync() or GPUDevice.createRenderPipelineAsync() call rejects. * Available only in secure contexts. @@ -3901,6 +4039,125 @@ declare var GPUPipelineError: { new(message: string, options: GPUPipelineErrorInit): GPUPipelineError; }; +/** + * The **`GPUPipelineLayout`** interface of the WebGPU API defines the GPUBindGroupLayouts used by a pipeline. GPUBindGroups used with the pipeline during command encoding must have compatible GPUBindGroupLayouts. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout) + */ +interface GPUPipelineLayout extends GPUObjectBase { +} + +declare var GPUPipelineLayout: { + prototype: GPUPipelineLayout; + new(): GPUPipelineLayout; +}; + +/** + * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle) + */ +interface GPURenderBundle extends GPUObjectBase { +} + +declare var GPURenderBundle: { + prototype: GPURenderBundle; + new(): GPURenderBundle; +}; + +/** + * The **`GPURenderPipeline`** interface of the WebGPU API represents a pipeline that controls the vertex and fragment shader stages and can be used in a GPURenderPassEncoder or GPURenderBundleEncoder. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline) + */ +interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase { +} + +declare var GPURenderPipeline: { + prototype: GPURenderPipeline; + new(): GPURenderPipeline; +}; + +/** + * The **`GPUSampler`** interface of the WebGPU API represents an object that can control how shaders transform and filter texture resource data. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler) + */ +interface GPUSampler extends GPUObjectBase { +} + +declare var GPUSampler: { + prototype: GPUSampler; + new(): GPUSampler; +}; + +/** + * The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures) + */ +interface GPUSupportedFeatures { + forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void; +} + +declare var GPUSupportedFeatures: { + prototype: GPUSupportedFeatures; + new(): GPUSupportedFeatures; +}; + +/** + * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView) + */ +interface GPUTextureView extends GPUObjectBase { +} + +declare var GPUTextureView: { + prototype: GPUTextureView; + new(): GPUTextureView; +}; + +/** + * The **`GPUUncapturedErrorEvent`** interface of the WebGPU API is the event object type for the GPUDevice uncapturederror event, used for telemetry and to report unexpected errors. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent) + */ +interface GPUUncapturedErrorEvent extends Event { + /** + * The **`error`** read-only property of the GPUUncapturedErrorEvent interface is a GPUError object instance providing access to the details of the error. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error) + */ + readonly error: GPUError; +} + +declare var GPUUncapturedErrorEvent: { + prototype: GPUUncapturedErrorEvent; + new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent; +}; + +/** + * The **`GPUValidationError`** interface of the WebGPU API describes an application error indicating that an operation did not pass the WebGPU API's validation constraints. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError) + */ +interface GPUValidationError extends GPUError { +} + +declare var GPUValidationError: { + prototype: GPUValidationError; + new(message: string): GPUValidationError; +}; + interface GenericTransformStream { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */ readonly readable: ReadableStream; @@ -7775,6 +8032,21 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +/** + * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures) + */ +interface WGSLLanguageFeatures { + forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void; +} + +declare var WGSLLanguageFeatures: { + prototype: WGSLLanguageFeatures; + new(): WGSLLanguageFeatures; +}; + /** * The **`WebGL2RenderingContext`** interface provides the OpenGL ES 3.0 rendering context for the drawing surface of an HTML element. * @@ -11486,6 +11758,7 @@ type FileSystemHandleKind = "directory" | "file"; type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; +type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; @@ -11604,6 +11877,9 @@ interface FormData { values(): FormDataIterator; } +interface GPUSupportedFeatures extends ReadonlySet { +} + interface HeadersIterator extends IteratorObject { [Symbol.iterator](): HeadersIterator; } @@ -11734,6 +12010,9 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +interface WGSLLanguageFeatures extends ReadonlySet { +} + interface WebGL2RenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: GLfloat[], srcOffset?: number): void; diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index c3864e232..0b7de9d77 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -806,6 +806,10 @@ interface GPUPipelineErrorInit { reason: GPUPipelineErrorReason; } +interface GPUUncapturedErrorEventInit extends EventInit { + error: GPUError; +} + interface GainOptions extends AudioNodeOptions { gain?: number; } @@ -12547,6 +12551,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve createEvent(eventInterface: "FocusEvent"): FocusEvent; createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent; createEvent(eventInterface: "FormDataEvent"): FormDataEvent; + createEvent(eventInterface: "GPUUncapturedErrorEvent"): GPUUncapturedErrorEvent; createEvent(eventInterface: "GamepadEvent"): GamepadEvent; createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent; createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent; @@ -14686,6 +14691,88 @@ declare var FragmentDirective: { new(): FragmentDirective; }; +/** + * The **`GPUBindGroup`** interface of the WebGPU API is based on a GPUBindGroupLayout and defines a set of resources to be bound together in a group and how those resources are used in shader stages. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup) + */ +interface GPUBindGroup extends GPUObjectBase { +} + +declare var GPUBindGroup: { + prototype: GPUBindGroup; + new(): GPUBindGroup; +}; + +/** + * The **`GPUBindGroupLayout`** interface of the WebGPU API defines the structure and purpose of related GPU resources such as buffers that will be used in a pipeline, and is used as a template when creating GPUBindGroups. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroupLayout) + */ +interface GPUBindGroupLayout extends GPUObjectBase { +} + +declare var GPUBindGroupLayout: { + prototype: GPUBindGroupLayout; + new(): GPUBindGroupLayout; +}; + +/** + * The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer) + */ +interface GPUCommandBuffer extends GPUObjectBase { +} + +declare var GPUCommandBuffer: { + prototype: GPUCommandBuffer; + new(): GPUCommandBuffer; +}; + +/** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline) + */ +interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase { +} + +declare var GPUComputePipeline: { + prototype: GPUComputePipeline; + new(): GPUComputePipeline; +}; + +/** + * The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo) + */ +interface GPUDeviceLostInfo { + /** + * The **`message`** read-only property of the GPUDeviceLostInfo interface provides a human-readable message that explains why the device was lost. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message) + */ + readonly message: string; + /** + * The **`reason`** read-only property of the GPUDeviceLostInfo interface defines the reason the device was lost in a machine-readable way. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason) + */ + readonly reason: GPUDeviceLostReason; +} + +declare var GPUDeviceLostInfo: { + prototype: GPUDeviceLostInfo; + new(): GPUDeviceLostInfo; +}; + /** * The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the uncapturederror event. * Available only in secure contexts. @@ -14706,6 +14793,58 @@ declare var GPUError: { new(): GPUError; }; +/** + * The **`GPUExternalTexture`** interface of the WebGPU API represents a wrapper object containing an HTMLVideoElement snapshot that can be used as a texture in GPU rendering operations. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture) + */ +interface GPUExternalTexture extends GPUObjectBase { +} + +declare var GPUExternalTexture: { + prototype: GPUExternalTexture; + new(): GPUExternalTexture; +}; + +/** + * The **`GPUInternalError`** interface of the WebGPU API describes an application error indicating that an operation failed for a system or implementation-specific reason, even when all validation requirements were satisfied. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError) + */ +interface GPUInternalError extends GPUError { +} + +declare var GPUInternalError: { + prototype: GPUInternalError; + new(message: string): GPUInternalError; +}; + +interface GPUObjectBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */ + label: string; +} + +/** + * The **`GPUOutOfMemoryError`** interface of the WebGPU API describes an out-of-memory (oom) error indicating that there was not enough free memory to complete the requested operation. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError) + */ +interface GPUOutOfMemoryError extends GPUError { +} + +declare var GPUOutOfMemoryError: { + prototype: GPUOutOfMemoryError; + new(message: string): GPUOutOfMemoryError; +}; + +interface GPUPipelineBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */ + getBindGroupLayout(index: number): GPUBindGroupLayout; +} + /** * The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure. This is the value received when a Promise returned by a GPUDevice.createComputePipelineAsync() or GPUDevice.createRenderPipelineAsync() call rejects. * Available only in secure contexts. @@ -14726,6 +14865,125 @@ declare var GPUPipelineError: { new(message: string, options: GPUPipelineErrorInit): GPUPipelineError; }; +/** + * The **`GPUPipelineLayout`** interface of the WebGPU API defines the GPUBindGroupLayouts used by a pipeline. GPUBindGroups used with the pipeline during command encoding must have compatible GPUBindGroupLayouts. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout) + */ +interface GPUPipelineLayout extends GPUObjectBase { +} + +declare var GPUPipelineLayout: { + prototype: GPUPipelineLayout; + new(): GPUPipelineLayout; +}; + +/** + * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle) + */ +interface GPURenderBundle extends GPUObjectBase { +} + +declare var GPURenderBundle: { + prototype: GPURenderBundle; + new(): GPURenderBundle; +}; + +/** + * The **`GPURenderPipeline`** interface of the WebGPU API represents a pipeline that controls the vertex and fragment shader stages and can be used in a GPURenderPassEncoder or GPURenderBundleEncoder. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline) + */ +interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase { +} + +declare var GPURenderPipeline: { + prototype: GPURenderPipeline; + new(): GPURenderPipeline; +}; + +/** + * The **`GPUSampler`** interface of the WebGPU API represents an object that can control how shaders transform and filter texture resource data. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler) + */ +interface GPUSampler extends GPUObjectBase { +} + +declare var GPUSampler: { + prototype: GPUSampler; + new(): GPUSampler; +}; + +/** + * The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures) + */ +interface GPUSupportedFeatures { + forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void; +} + +declare var GPUSupportedFeatures: { + prototype: GPUSupportedFeatures; + new(): GPUSupportedFeatures; +}; + +/** + * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView) + */ +interface GPUTextureView extends GPUObjectBase { +} + +declare var GPUTextureView: { + prototype: GPUTextureView; + new(): GPUTextureView; +}; + +/** + * The **`GPUUncapturedErrorEvent`** interface of the WebGPU API is the event object type for the GPUDevice uncapturederror event, used for telemetry and to report unexpected errors. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent) + */ +interface GPUUncapturedErrorEvent extends Event { + /** + * The **`error`** read-only property of the GPUUncapturedErrorEvent interface is a GPUError object instance providing access to the details of the error. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error) + */ + readonly error: GPUError; +} + +declare var GPUUncapturedErrorEvent: { + prototype: GPUUncapturedErrorEvent; + new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent; +}; + +/** + * The **`GPUValidationError`** interface of the WebGPU API describes an application error indicating that an operation did not pass the WebGPU API's validation constraints. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError) + */ +interface GPUValidationError extends GPUError { +} + +declare var GPUValidationError: { + prototype: GPUValidationError; + new(message: string): GPUValidationError; +}; + /** * The **`GainNode`** interface represents a change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels. * @@ -36794,6 +37052,21 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +/** + * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures) + */ +interface WGSLLanguageFeatures { + forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void; +} + +declare var WGSLLanguageFeatures: { + prototype: WGSLLanguageFeatures; + new(): WGSLLanguageFeatures; +}; + /** * The **`WakeLock`** interface of the Screen Wake Lock API can be used to request a lock that prevents device screens from dimming or locking when an application needs to keep running. * Available only in secure contexts. @@ -42546,6 +42819,7 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; type FullscreenNavigationUI = "auto" | "hide" | "show"; +type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble"; type GamepadHapticsResult = "complete" | "preempted"; diff --git a/baselines/ts5.5/dom.iterable.generated.d.ts b/baselines/ts5.5/dom.iterable.generated.d.ts index 64a2f4f93..0e6eaeaf9 100644 --- a/baselines/ts5.5/dom.iterable.generated.d.ts +++ b/baselines/ts5.5/dom.iterable.generated.d.ts @@ -138,6 +138,9 @@ interface FormData { values(): IterableIterator; } +interface GPUSupportedFeatures extends ReadonlySet { +} + interface HTMLAllCollection { [Symbol.iterator](): IterableIterator; } @@ -427,6 +430,9 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable, offsetsOffset: number, drawcount: GLsizei): void; } +interface WGSLLanguageFeatures extends ReadonlySet { +} + interface WebGL2RenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable, srcOffset?: number): void; diff --git a/baselines/ts5.5/serviceworker.generated.d.ts b/baselines/ts5.5/serviceworker.generated.d.ts index ace8530a4..4c6fca480 100644 --- a/baselines/ts5.5/serviceworker.generated.d.ts +++ b/baselines/ts5.5/serviceworker.generated.d.ts @@ -273,6 +273,10 @@ interface GPUPipelineErrorInit { reason: GPUPipelineErrorReason; } +interface GPUUncapturedErrorEventInit extends EventInit { + error: GPUError; +} + interface GetNotificationOptions { tag?: string; } @@ -4175,6 +4179,88 @@ declare var FormData: { new(): FormData; }; +/** + * The **`GPUBindGroup`** interface of the WebGPU API is based on a GPUBindGroupLayout and defines a set of resources to be bound together in a group and how those resources are used in shader stages. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup) + */ +interface GPUBindGroup extends GPUObjectBase { +} + +declare var GPUBindGroup: { + prototype: GPUBindGroup; + new(): GPUBindGroup; +}; + +/** + * The **`GPUBindGroupLayout`** interface of the WebGPU API defines the structure and purpose of related GPU resources such as buffers that will be used in a pipeline, and is used as a template when creating GPUBindGroups. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroupLayout) + */ +interface GPUBindGroupLayout extends GPUObjectBase { +} + +declare var GPUBindGroupLayout: { + prototype: GPUBindGroupLayout; + new(): GPUBindGroupLayout; +}; + +/** + * The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer) + */ +interface GPUCommandBuffer extends GPUObjectBase { +} + +declare var GPUCommandBuffer: { + prototype: GPUCommandBuffer; + new(): GPUCommandBuffer; +}; + +/** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline) + */ +interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase { +} + +declare var GPUComputePipeline: { + prototype: GPUComputePipeline; + new(): GPUComputePipeline; +}; + +/** + * The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo) + */ +interface GPUDeviceLostInfo { + /** + * The **`message`** read-only property of the GPUDeviceLostInfo interface provides a human-readable message that explains why the device was lost. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message) + */ + readonly message: string; + /** + * The **`reason`** read-only property of the GPUDeviceLostInfo interface defines the reason the device was lost in a machine-readable way. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason) + */ + readonly reason: GPUDeviceLostReason; +} + +declare var GPUDeviceLostInfo: { + prototype: GPUDeviceLostInfo; + new(): GPUDeviceLostInfo; +}; + /** * The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the uncapturederror event. * Available only in secure contexts. @@ -4195,6 +4281,58 @@ declare var GPUError: { new(): GPUError; }; +/** + * The **`GPUExternalTexture`** interface of the WebGPU API represents a wrapper object containing an HTMLVideoElement snapshot that can be used as a texture in GPU rendering operations. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture) + */ +interface GPUExternalTexture extends GPUObjectBase { +} + +declare var GPUExternalTexture: { + prototype: GPUExternalTexture; + new(): GPUExternalTexture; +}; + +/** + * The **`GPUInternalError`** interface of the WebGPU API describes an application error indicating that an operation failed for a system or implementation-specific reason, even when all validation requirements were satisfied. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError) + */ +interface GPUInternalError extends GPUError { +} + +declare var GPUInternalError: { + prototype: GPUInternalError; + new(message: string): GPUInternalError; +}; + +interface GPUObjectBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */ + label: string; +} + +/** + * The **`GPUOutOfMemoryError`** interface of the WebGPU API describes an out-of-memory (oom) error indicating that there was not enough free memory to complete the requested operation. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError) + */ +interface GPUOutOfMemoryError extends GPUError { +} + +declare var GPUOutOfMemoryError: { + prototype: GPUOutOfMemoryError; + new(message: string): GPUOutOfMemoryError; +}; + +interface GPUPipelineBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */ + getBindGroupLayout(index: number): GPUBindGroupLayout; +} + /** * The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure. This is the value received when a Promise returned by a GPUDevice.createComputePipelineAsync() or GPUDevice.createRenderPipelineAsync() call rejects. * Available only in secure contexts. @@ -4215,6 +4353,125 @@ declare var GPUPipelineError: { new(message: string, options: GPUPipelineErrorInit): GPUPipelineError; }; +/** + * The **`GPUPipelineLayout`** interface of the WebGPU API defines the GPUBindGroupLayouts used by a pipeline. GPUBindGroups used with the pipeline during command encoding must have compatible GPUBindGroupLayouts. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout) + */ +interface GPUPipelineLayout extends GPUObjectBase { +} + +declare var GPUPipelineLayout: { + prototype: GPUPipelineLayout; + new(): GPUPipelineLayout; +}; + +/** + * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle) + */ +interface GPURenderBundle extends GPUObjectBase { +} + +declare var GPURenderBundle: { + prototype: GPURenderBundle; + new(): GPURenderBundle; +}; + +/** + * The **`GPURenderPipeline`** interface of the WebGPU API represents a pipeline that controls the vertex and fragment shader stages and can be used in a GPURenderPassEncoder or GPURenderBundleEncoder. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline) + */ +interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase { +} + +declare var GPURenderPipeline: { + prototype: GPURenderPipeline; + new(): GPURenderPipeline; +}; + +/** + * The **`GPUSampler`** interface of the WebGPU API represents an object that can control how shaders transform and filter texture resource data. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler) + */ +interface GPUSampler extends GPUObjectBase { +} + +declare var GPUSampler: { + prototype: GPUSampler; + new(): GPUSampler; +}; + +/** + * The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures) + */ +interface GPUSupportedFeatures { + forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void; +} + +declare var GPUSupportedFeatures: { + prototype: GPUSupportedFeatures; + new(): GPUSupportedFeatures; +}; + +/** + * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView) + */ +interface GPUTextureView extends GPUObjectBase { +} + +declare var GPUTextureView: { + prototype: GPUTextureView; + new(): GPUTextureView; +}; + +/** + * The **`GPUUncapturedErrorEvent`** interface of the WebGPU API is the event object type for the GPUDevice uncapturederror event, used for telemetry and to report unexpected errors. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent) + */ +interface GPUUncapturedErrorEvent extends Event { + /** + * The **`error`** read-only property of the GPUUncapturedErrorEvent interface is a GPUError object instance providing access to the details of the error. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error) + */ + readonly error: GPUError; +} + +declare var GPUUncapturedErrorEvent: { + prototype: GPUUncapturedErrorEvent; + new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent; +}; + +/** + * The **`GPUValidationError`** interface of the WebGPU API describes an application error indicating that an operation did not pass the WebGPU API's validation constraints. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError) + */ +interface GPUValidationError extends GPUError { +} + +declare var GPUValidationError: { + prototype: GPUValidationError; + new(message: string): GPUValidationError; +}; + interface GenericTransformStream { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */ readonly readable: ReadableStream; @@ -8235,6 +8492,21 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +/** + * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures) + */ +interface WGSLLanguageFeatures { + forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void; +} + +declare var WGSLLanguageFeatures: { + prototype: WGSLLanguageFeatures; + new(): WGSLLanguageFeatures; +}; + /** * The **`WebGL2RenderingContext`** interface provides the OpenGL ES 3.0 rendering context for the drawing surface of an HTML element. * @@ -11804,6 +12076,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 GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; diff --git a/baselines/ts5.5/serviceworker.iterable.generated.d.ts b/baselines/ts5.5/serviceworker.iterable.generated.d.ts index 58c4dc550..573cdb1bb 100644 --- a/baselines/ts5.5/serviceworker.iterable.generated.d.ts +++ b/baselines/ts5.5/serviceworker.iterable.generated.d.ts @@ -78,6 +78,9 @@ interface FormData { values(): IterableIterator; } +interface GPUSupportedFeatures extends ReadonlySet { +} + interface Headers { [Symbol.iterator](): IterableIterator<[string, string]>; /** Returns an iterator allowing to go through all key/value pairs contained in this object. */ @@ -196,6 +199,9 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable, offsetsOffset: number, drawcount: GLsizei): void; } +interface WGSLLanguageFeatures extends ReadonlySet { +} + interface WebGL2RenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable, srcOffset?: number): void; diff --git a/baselines/ts5.5/sharedworker.generated.d.ts b/baselines/ts5.5/sharedworker.generated.d.ts index 2fd5322ab..636e95ac2 100644 --- a/baselines/ts5.5/sharedworker.generated.d.ts +++ b/baselines/ts5.5/sharedworker.generated.d.ts @@ -217,6 +217,10 @@ interface GPUPipelineErrorInit { reason: GPUPipelineErrorReason; } +interface GPUUncapturedErrorEventInit extends EventInit { + error: GPUError; +} + interface GetNotificationOptions { tag?: string; } @@ -3858,6 +3862,88 @@ declare var FormData: { new(): FormData; }; +/** + * The **`GPUBindGroup`** interface of the WebGPU API is based on a GPUBindGroupLayout and defines a set of resources to be bound together in a group and how those resources are used in shader stages. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup) + */ +interface GPUBindGroup extends GPUObjectBase { +} + +declare var GPUBindGroup: { + prototype: GPUBindGroup; + new(): GPUBindGroup; +}; + +/** + * The **`GPUBindGroupLayout`** interface of the WebGPU API defines the structure and purpose of related GPU resources such as buffers that will be used in a pipeline, and is used as a template when creating GPUBindGroups. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroupLayout) + */ +interface GPUBindGroupLayout extends GPUObjectBase { +} + +declare var GPUBindGroupLayout: { + prototype: GPUBindGroupLayout; + new(): GPUBindGroupLayout; +}; + +/** + * The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer) + */ +interface GPUCommandBuffer extends GPUObjectBase { +} + +declare var GPUCommandBuffer: { + prototype: GPUCommandBuffer; + new(): GPUCommandBuffer; +}; + +/** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline) + */ +interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase { +} + +declare var GPUComputePipeline: { + prototype: GPUComputePipeline; + new(): GPUComputePipeline; +}; + +/** + * The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo) + */ +interface GPUDeviceLostInfo { + /** + * The **`message`** read-only property of the GPUDeviceLostInfo interface provides a human-readable message that explains why the device was lost. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message) + */ + readonly message: string; + /** + * The **`reason`** read-only property of the GPUDeviceLostInfo interface defines the reason the device was lost in a machine-readable way. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason) + */ + readonly reason: GPUDeviceLostReason; +} + +declare var GPUDeviceLostInfo: { + prototype: GPUDeviceLostInfo; + new(): GPUDeviceLostInfo; +}; + /** * The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the uncapturederror event. * Available only in secure contexts. @@ -3878,6 +3964,58 @@ declare var GPUError: { new(): GPUError; }; +/** + * The **`GPUExternalTexture`** interface of the WebGPU API represents a wrapper object containing an HTMLVideoElement snapshot that can be used as a texture in GPU rendering operations. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture) + */ +interface GPUExternalTexture extends GPUObjectBase { +} + +declare var GPUExternalTexture: { + prototype: GPUExternalTexture; + new(): GPUExternalTexture; +}; + +/** + * The **`GPUInternalError`** interface of the WebGPU API describes an application error indicating that an operation failed for a system or implementation-specific reason, even when all validation requirements were satisfied. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError) + */ +interface GPUInternalError extends GPUError { +} + +declare var GPUInternalError: { + prototype: GPUInternalError; + new(message: string): GPUInternalError; +}; + +interface GPUObjectBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */ + label: string; +} + +/** + * The **`GPUOutOfMemoryError`** interface of the WebGPU API describes an out-of-memory (oom) error indicating that there was not enough free memory to complete the requested operation. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError) + */ +interface GPUOutOfMemoryError extends GPUError { +} + +declare var GPUOutOfMemoryError: { + prototype: GPUOutOfMemoryError; + new(message: string): GPUOutOfMemoryError; +}; + +interface GPUPipelineBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */ + getBindGroupLayout(index: number): GPUBindGroupLayout; +} + /** * The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure. This is the value received when a Promise returned by a GPUDevice.createComputePipelineAsync() or GPUDevice.createRenderPipelineAsync() call rejects. * Available only in secure contexts. @@ -3898,6 +4036,125 @@ declare var GPUPipelineError: { new(message: string, options: GPUPipelineErrorInit): GPUPipelineError; }; +/** + * The **`GPUPipelineLayout`** interface of the WebGPU API defines the GPUBindGroupLayouts used by a pipeline. GPUBindGroups used with the pipeline during command encoding must have compatible GPUBindGroupLayouts. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout) + */ +interface GPUPipelineLayout extends GPUObjectBase { +} + +declare var GPUPipelineLayout: { + prototype: GPUPipelineLayout; + new(): GPUPipelineLayout; +}; + +/** + * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle) + */ +interface GPURenderBundle extends GPUObjectBase { +} + +declare var GPURenderBundle: { + prototype: GPURenderBundle; + new(): GPURenderBundle; +}; + +/** + * The **`GPURenderPipeline`** interface of the WebGPU API represents a pipeline that controls the vertex and fragment shader stages and can be used in a GPURenderPassEncoder or GPURenderBundleEncoder. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline) + */ +interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase { +} + +declare var GPURenderPipeline: { + prototype: GPURenderPipeline; + new(): GPURenderPipeline; +}; + +/** + * The **`GPUSampler`** interface of the WebGPU API represents an object that can control how shaders transform and filter texture resource data. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler) + */ +interface GPUSampler extends GPUObjectBase { +} + +declare var GPUSampler: { + prototype: GPUSampler; + new(): GPUSampler; +}; + +/** + * The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures) + */ +interface GPUSupportedFeatures { + forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void; +} + +declare var GPUSupportedFeatures: { + prototype: GPUSupportedFeatures; + new(): GPUSupportedFeatures; +}; + +/** + * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView) + */ +interface GPUTextureView extends GPUObjectBase { +} + +declare var GPUTextureView: { + prototype: GPUTextureView; + new(): GPUTextureView; +}; + +/** + * The **`GPUUncapturedErrorEvent`** interface of the WebGPU API is the event object type for the GPUDevice uncapturederror event, used for telemetry and to report unexpected errors. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent) + */ +interface GPUUncapturedErrorEvent extends Event { + /** + * The **`error`** read-only property of the GPUUncapturedErrorEvent interface is a GPUError object instance providing access to the details of the error. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error) + */ + readonly error: GPUError; +} + +declare var GPUUncapturedErrorEvent: { + prototype: GPUUncapturedErrorEvent; + new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent; +}; + +/** + * The **`GPUValidationError`** interface of the WebGPU API describes an application error indicating that an operation did not pass the WebGPU API's validation constraints. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError) + */ +interface GPUValidationError extends GPUError { +} + +declare var GPUValidationError: { + prototype: GPUValidationError; + new(message: string): GPUValidationError; +}; + interface GenericTransformStream { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */ readonly readable: ReadableStream; @@ -7772,6 +8029,21 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +/** + * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures) + */ +interface WGSLLanguageFeatures { + forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void; +} + +declare var WGSLLanguageFeatures: { + prototype: WGSLLanguageFeatures; + new(): WGSLLanguageFeatures; +}; + /** * The **`WebGL2RenderingContext`** interface provides the OpenGL ES 3.0 rendering context for the drawing surface of an HTML element. * @@ -11483,6 +11755,7 @@ type FileSystemHandleKind = "directory" | "file"; type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; +type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; diff --git a/baselines/ts5.5/sharedworker.iterable.generated.d.ts b/baselines/ts5.5/sharedworker.iterable.generated.d.ts index 106c7e8e3..948f8f4dd 100644 --- a/baselines/ts5.5/sharedworker.iterable.generated.d.ts +++ b/baselines/ts5.5/sharedworker.iterable.generated.d.ts @@ -63,6 +63,9 @@ interface FormData { values(): IterableIterator; } +interface GPUSupportedFeatures extends ReadonlySet { +} + interface Headers { [Symbol.iterator](): IterableIterator<[string, string]>; /** Returns an iterator allowing to go through all key/value pairs contained in this object. */ @@ -181,6 +184,9 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable, offsetsOffset: number, drawcount: GLsizei): void; } +interface WGSLLanguageFeatures extends ReadonlySet { +} + interface WebGL2RenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable, srcOffset?: number): void; diff --git a/baselines/ts5.5/webworker.generated.d.ts b/baselines/ts5.5/webworker.generated.d.ts index 1b966b775..be37ed942 100644 --- a/baselines/ts5.5/webworker.generated.d.ts +++ b/baselines/ts5.5/webworker.generated.d.ts @@ -363,6 +363,10 @@ interface GPUPipelineErrorInit { reason: GPUPipelineErrorReason; } +interface GPUUncapturedErrorEventInit extends EventInit { + error: GPUError; +} + interface GetNotificationOptions { tag?: string; } @@ -4877,6 +4881,88 @@ declare var FormData: { new(): FormData; }; +/** + * The **`GPUBindGroup`** interface of the WebGPU API is based on a GPUBindGroupLayout and defines a set of resources to be bound together in a group and how those resources are used in shader stages. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup) + */ +interface GPUBindGroup extends GPUObjectBase { +} + +declare var GPUBindGroup: { + prototype: GPUBindGroup; + new(): GPUBindGroup; +}; + +/** + * The **`GPUBindGroupLayout`** interface of the WebGPU API defines the structure and purpose of related GPU resources such as buffers that will be used in a pipeline, and is used as a template when creating GPUBindGroups. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroupLayout) + */ +interface GPUBindGroupLayout extends GPUObjectBase { +} + +declare var GPUBindGroupLayout: { + prototype: GPUBindGroupLayout; + new(): GPUBindGroupLayout; +}; + +/** + * The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer) + */ +interface GPUCommandBuffer extends GPUObjectBase { +} + +declare var GPUCommandBuffer: { + prototype: GPUCommandBuffer; + new(): GPUCommandBuffer; +}; + +/** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline) + */ +interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase { +} + +declare var GPUComputePipeline: { + prototype: GPUComputePipeline; + new(): GPUComputePipeline; +}; + +/** + * The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo) + */ +interface GPUDeviceLostInfo { + /** + * The **`message`** read-only property of the GPUDeviceLostInfo interface provides a human-readable message that explains why the device was lost. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message) + */ + readonly message: string; + /** + * The **`reason`** read-only property of the GPUDeviceLostInfo interface defines the reason the device was lost in a machine-readable way. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason) + */ + readonly reason: GPUDeviceLostReason; +} + +declare var GPUDeviceLostInfo: { + prototype: GPUDeviceLostInfo; + new(): GPUDeviceLostInfo; +}; + /** * The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the uncapturederror event. * Available only in secure contexts. @@ -4897,6 +4983,58 @@ declare var GPUError: { new(): GPUError; }; +/** + * The **`GPUExternalTexture`** interface of the WebGPU API represents a wrapper object containing an HTMLVideoElement snapshot that can be used as a texture in GPU rendering operations. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture) + */ +interface GPUExternalTexture extends GPUObjectBase { +} + +declare var GPUExternalTexture: { + prototype: GPUExternalTexture; + new(): GPUExternalTexture; +}; + +/** + * The **`GPUInternalError`** interface of the WebGPU API describes an application error indicating that an operation failed for a system or implementation-specific reason, even when all validation requirements were satisfied. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError) + */ +interface GPUInternalError extends GPUError { +} + +declare var GPUInternalError: { + prototype: GPUInternalError; + new(message: string): GPUInternalError; +}; + +interface GPUObjectBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */ + label: string; +} + +/** + * The **`GPUOutOfMemoryError`** interface of the WebGPU API describes an out-of-memory (oom) error indicating that there was not enough free memory to complete the requested operation. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError) + */ +interface GPUOutOfMemoryError extends GPUError { +} + +declare var GPUOutOfMemoryError: { + prototype: GPUOutOfMemoryError; + new(message: string): GPUOutOfMemoryError; +}; + +interface GPUPipelineBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */ + getBindGroupLayout(index: number): GPUBindGroupLayout; +} + /** * The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure. This is the value received when a Promise returned by a GPUDevice.createComputePipelineAsync() or GPUDevice.createRenderPipelineAsync() call rejects. * Available only in secure contexts. @@ -4917,6 +5055,125 @@ declare var GPUPipelineError: { new(message: string, options: GPUPipelineErrorInit): GPUPipelineError; }; +/** + * The **`GPUPipelineLayout`** interface of the WebGPU API defines the GPUBindGroupLayouts used by a pipeline. GPUBindGroups used with the pipeline during command encoding must have compatible GPUBindGroupLayouts. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout) + */ +interface GPUPipelineLayout extends GPUObjectBase { +} + +declare var GPUPipelineLayout: { + prototype: GPUPipelineLayout; + new(): GPUPipelineLayout; +}; + +/** + * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle) + */ +interface GPURenderBundle extends GPUObjectBase { +} + +declare var GPURenderBundle: { + prototype: GPURenderBundle; + new(): GPURenderBundle; +}; + +/** + * The **`GPURenderPipeline`** interface of the WebGPU API represents a pipeline that controls the vertex and fragment shader stages and can be used in a GPURenderPassEncoder or GPURenderBundleEncoder. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline) + */ +interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase { +} + +declare var GPURenderPipeline: { + prototype: GPURenderPipeline; + new(): GPURenderPipeline; +}; + +/** + * The **`GPUSampler`** interface of the WebGPU API represents an object that can control how shaders transform and filter texture resource data. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler) + */ +interface GPUSampler extends GPUObjectBase { +} + +declare var GPUSampler: { + prototype: GPUSampler; + new(): GPUSampler; +}; + +/** + * The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures) + */ +interface GPUSupportedFeatures { + forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void; +} + +declare var GPUSupportedFeatures: { + prototype: GPUSupportedFeatures; + new(): GPUSupportedFeatures; +}; + +/** + * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView) + */ +interface GPUTextureView extends GPUObjectBase { +} + +declare var GPUTextureView: { + prototype: GPUTextureView; + new(): GPUTextureView; +}; + +/** + * The **`GPUUncapturedErrorEvent`** interface of the WebGPU API is the event object type for the GPUDevice uncapturederror event, used for telemetry and to report unexpected errors. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent) + */ +interface GPUUncapturedErrorEvent extends Event { + /** + * The **`error`** read-only property of the GPUUncapturedErrorEvent interface is a GPUError object instance providing access to the details of the error. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error) + */ + readonly error: GPUError; +} + +declare var GPUUncapturedErrorEvent: { + prototype: GPUUncapturedErrorEvent; + new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent; +}; + +/** + * The **`GPUValidationError`** interface of the WebGPU API describes an application error indicating that an operation did not pass the WebGPU API's validation constraints. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError) + */ +interface GPUValidationError extends GPUError { +} + +declare var GPUValidationError: { + prototype: GPUValidationError; + new(message: string): GPUValidationError; +}; + interface GenericTransformStream { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */ readonly readable: ReadableStream; @@ -9689,6 +9946,21 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +/** + * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures) + */ +interface WGSLLanguageFeatures { + forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void; +} + +declare var WGSLLanguageFeatures: { + prototype: WGSLLanguageFeatures; + new(): WGSLLanguageFeatures; +}; + /** * The **`WebGL2RenderingContext`** interface provides the OpenGL ES 3.0 rendering context for the drawing surface of an HTML element. * @@ -13490,6 +13762,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 GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software"; diff --git a/baselines/ts5.5/webworker.iterable.generated.d.ts b/baselines/ts5.5/webworker.iterable.generated.d.ts index 1a50a7022..5063dd610 100644 --- a/baselines/ts5.5/webworker.iterable.generated.d.ts +++ b/baselines/ts5.5/webworker.iterable.generated.d.ts @@ -78,6 +78,9 @@ interface FormData { values(): IterableIterator; } +interface GPUSupportedFeatures extends ReadonlySet { +} + interface Headers { [Symbol.iterator](): IterableIterator<[string, string]>; /** Returns an iterator allowing to go through all key/value pairs contained in this object. */ @@ -200,6 +203,9 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable, offsetsOffset: number, drawcount: GLsizei): void; } +interface WGSLLanguageFeatures extends ReadonlySet { +} + interface WebGL2RenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable, srcOffset?: number): void; diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index a45b90495..2d0b44f82 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -806,6 +806,10 @@ interface GPUPipelineErrorInit { reason: GPUPipelineErrorReason; } +interface GPUUncapturedErrorEventInit extends EventInit { + error: GPUError; +} + interface GainOptions extends AudioNodeOptions { gain?: number; } @@ -12555,6 +12559,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve createEvent(eventInterface: "FocusEvent"): FocusEvent; createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent; createEvent(eventInterface: "FormDataEvent"): FormDataEvent; + createEvent(eventInterface: "GPUUncapturedErrorEvent"): GPUUncapturedErrorEvent; createEvent(eventInterface: "GamepadEvent"): GamepadEvent; createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent; createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent; @@ -14697,6 +14702,88 @@ declare var FragmentDirective: { new(): FragmentDirective; }; +/** + * The **`GPUBindGroup`** interface of the WebGPU API is based on a GPUBindGroupLayout and defines a set of resources to be bound together in a group and how those resources are used in shader stages. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup) + */ +interface GPUBindGroup extends GPUObjectBase { +} + +declare var GPUBindGroup: { + prototype: GPUBindGroup; + new(): GPUBindGroup; +}; + +/** + * The **`GPUBindGroupLayout`** interface of the WebGPU API defines the structure and purpose of related GPU resources such as buffers that will be used in a pipeline, and is used as a template when creating GPUBindGroups. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroupLayout) + */ +interface GPUBindGroupLayout extends GPUObjectBase { +} + +declare var GPUBindGroupLayout: { + prototype: GPUBindGroupLayout; + new(): GPUBindGroupLayout; +}; + +/** + * The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer) + */ +interface GPUCommandBuffer extends GPUObjectBase { +} + +declare var GPUCommandBuffer: { + prototype: GPUCommandBuffer; + new(): GPUCommandBuffer; +}; + +/** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline) + */ +interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase { +} + +declare var GPUComputePipeline: { + prototype: GPUComputePipeline; + new(): GPUComputePipeline; +}; + +/** + * The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo) + */ +interface GPUDeviceLostInfo { + /** + * The **`message`** read-only property of the GPUDeviceLostInfo interface provides a human-readable message that explains why the device was lost. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message) + */ + readonly message: string; + /** + * The **`reason`** read-only property of the GPUDeviceLostInfo interface defines the reason the device was lost in a machine-readable way. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason) + */ + readonly reason: GPUDeviceLostReason; +} + +declare var GPUDeviceLostInfo: { + prototype: GPUDeviceLostInfo; + new(): GPUDeviceLostInfo; +}; + /** * The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the uncapturederror event. * Available only in secure contexts. @@ -14717,6 +14804,58 @@ declare var GPUError: { new(): GPUError; }; +/** + * The **`GPUExternalTexture`** interface of the WebGPU API represents a wrapper object containing an HTMLVideoElement snapshot that can be used as a texture in GPU rendering operations. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture) + */ +interface GPUExternalTexture extends GPUObjectBase { +} + +declare var GPUExternalTexture: { + prototype: GPUExternalTexture; + new(): GPUExternalTexture; +}; + +/** + * The **`GPUInternalError`** interface of the WebGPU API describes an application error indicating that an operation failed for a system or implementation-specific reason, even when all validation requirements were satisfied. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError) + */ +interface GPUInternalError extends GPUError { +} + +declare var GPUInternalError: { + prototype: GPUInternalError; + new(message: string): GPUInternalError; +}; + +interface GPUObjectBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */ + label: string; +} + +/** + * The **`GPUOutOfMemoryError`** interface of the WebGPU API describes an out-of-memory (oom) error indicating that there was not enough free memory to complete the requested operation. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError) + */ +interface GPUOutOfMemoryError extends GPUError { +} + +declare var GPUOutOfMemoryError: { + prototype: GPUOutOfMemoryError; + new(message: string): GPUOutOfMemoryError; +}; + +interface GPUPipelineBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */ + getBindGroupLayout(index: number): GPUBindGroupLayout; +} + /** * The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure. This is the value received when a Promise returned by a GPUDevice.createComputePipelineAsync() or GPUDevice.createRenderPipelineAsync() call rejects. * Available only in secure contexts. @@ -14737,6 +14876,125 @@ declare var GPUPipelineError: { new(message: string, options: GPUPipelineErrorInit): GPUPipelineError; }; +/** + * The **`GPUPipelineLayout`** interface of the WebGPU API defines the GPUBindGroupLayouts used by a pipeline. GPUBindGroups used with the pipeline during command encoding must have compatible GPUBindGroupLayouts. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout) + */ +interface GPUPipelineLayout extends GPUObjectBase { +} + +declare var GPUPipelineLayout: { + prototype: GPUPipelineLayout; + new(): GPUPipelineLayout; +}; + +/** + * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle) + */ +interface GPURenderBundle extends GPUObjectBase { +} + +declare var GPURenderBundle: { + prototype: GPURenderBundle; + new(): GPURenderBundle; +}; + +/** + * The **`GPURenderPipeline`** interface of the WebGPU API represents a pipeline that controls the vertex and fragment shader stages and can be used in a GPURenderPassEncoder or GPURenderBundleEncoder. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline) + */ +interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase { +} + +declare var GPURenderPipeline: { + prototype: GPURenderPipeline; + new(): GPURenderPipeline; +}; + +/** + * The **`GPUSampler`** interface of the WebGPU API represents an object that can control how shaders transform and filter texture resource data. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler) + */ +interface GPUSampler extends GPUObjectBase { +} + +declare var GPUSampler: { + prototype: GPUSampler; + new(): GPUSampler; +}; + +/** + * The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures) + */ +interface GPUSupportedFeatures { + forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void; +} + +declare var GPUSupportedFeatures: { + prototype: GPUSupportedFeatures; + new(): GPUSupportedFeatures; +}; + +/** + * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView) + */ +interface GPUTextureView extends GPUObjectBase { +} + +declare var GPUTextureView: { + prototype: GPUTextureView; + new(): GPUTextureView; +}; + +/** + * The **`GPUUncapturedErrorEvent`** interface of the WebGPU API is the event object type for the GPUDevice uncapturederror event, used for telemetry and to report unexpected errors. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent) + */ +interface GPUUncapturedErrorEvent extends Event { + /** + * The **`error`** read-only property of the GPUUncapturedErrorEvent interface is a GPUError object instance providing access to the details of the error. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error) + */ + readonly error: GPUError; +} + +declare var GPUUncapturedErrorEvent: { + prototype: GPUUncapturedErrorEvent; + new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent; +}; + +/** + * The **`GPUValidationError`** interface of the WebGPU API describes an application error indicating that an operation did not pass the WebGPU API's validation constraints. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError) + */ +interface GPUValidationError extends GPUError { +} + +declare var GPUValidationError: { + prototype: GPUValidationError; + new(message: string): GPUValidationError; +}; + /** * The **`GainNode`** interface represents a change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels. * @@ -36817,6 +37075,21 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +/** + * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures) + */ +interface WGSLLanguageFeatures { + forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void; +} + +declare var WGSLLanguageFeatures: { + prototype: WGSLLanguageFeatures; + new(): WGSLLanguageFeatures; +}; + /** * The **`WakeLock`** interface of the Screen Wake Lock API can be used to request a lock that prevents device screens from dimming or locking when an application needs to keep running. * Available only in secure contexts. @@ -42569,6 +42842,7 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; type FullscreenNavigationUI = "auto" | "hide" | "show"; +type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble"; type GamepadHapticsResult = "complete" | "preempted"; diff --git a/baselines/ts5.6/dom.iterable.generated.d.ts b/baselines/ts5.6/dom.iterable.generated.d.ts index 587bcca36..3ca23f70a 100644 --- a/baselines/ts5.6/dom.iterable.generated.d.ts +++ b/baselines/ts5.6/dom.iterable.generated.d.ts @@ -142,6 +142,9 @@ interface FormData { values(): FormDataIterator; } +interface GPUSupportedFeatures extends ReadonlySet { +} + interface HTMLAllCollection { [Symbol.iterator](): ArrayIterator; } @@ -447,6 +450,9 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable, offsetsOffset: number, drawcount: GLsizei): void; } +interface WGSLLanguageFeatures extends ReadonlySet { +} + interface WebGL2RenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable, srcOffset?: number): void; diff --git a/baselines/ts5.6/serviceworker.generated.d.ts b/baselines/ts5.6/serviceworker.generated.d.ts index ace8530a4..4c6fca480 100644 --- a/baselines/ts5.6/serviceworker.generated.d.ts +++ b/baselines/ts5.6/serviceworker.generated.d.ts @@ -273,6 +273,10 @@ interface GPUPipelineErrorInit { reason: GPUPipelineErrorReason; } +interface GPUUncapturedErrorEventInit extends EventInit { + error: GPUError; +} + interface GetNotificationOptions { tag?: string; } @@ -4175,6 +4179,88 @@ declare var FormData: { new(): FormData; }; +/** + * The **`GPUBindGroup`** interface of the WebGPU API is based on a GPUBindGroupLayout and defines a set of resources to be bound together in a group and how those resources are used in shader stages. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup) + */ +interface GPUBindGroup extends GPUObjectBase { +} + +declare var GPUBindGroup: { + prototype: GPUBindGroup; + new(): GPUBindGroup; +}; + +/** + * The **`GPUBindGroupLayout`** interface of the WebGPU API defines the structure and purpose of related GPU resources such as buffers that will be used in a pipeline, and is used as a template when creating GPUBindGroups. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroupLayout) + */ +interface GPUBindGroupLayout extends GPUObjectBase { +} + +declare var GPUBindGroupLayout: { + prototype: GPUBindGroupLayout; + new(): GPUBindGroupLayout; +}; + +/** + * The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer) + */ +interface GPUCommandBuffer extends GPUObjectBase { +} + +declare var GPUCommandBuffer: { + prototype: GPUCommandBuffer; + new(): GPUCommandBuffer; +}; + +/** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline) + */ +interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase { +} + +declare var GPUComputePipeline: { + prototype: GPUComputePipeline; + new(): GPUComputePipeline; +}; + +/** + * The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo) + */ +interface GPUDeviceLostInfo { + /** + * The **`message`** read-only property of the GPUDeviceLostInfo interface provides a human-readable message that explains why the device was lost. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message) + */ + readonly message: string; + /** + * The **`reason`** read-only property of the GPUDeviceLostInfo interface defines the reason the device was lost in a machine-readable way. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason) + */ + readonly reason: GPUDeviceLostReason; +} + +declare var GPUDeviceLostInfo: { + prototype: GPUDeviceLostInfo; + new(): GPUDeviceLostInfo; +}; + /** * The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the uncapturederror event. * Available only in secure contexts. @@ -4195,6 +4281,58 @@ declare var GPUError: { new(): GPUError; }; +/** + * The **`GPUExternalTexture`** interface of the WebGPU API represents a wrapper object containing an HTMLVideoElement snapshot that can be used as a texture in GPU rendering operations. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture) + */ +interface GPUExternalTexture extends GPUObjectBase { +} + +declare var GPUExternalTexture: { + prototype: GPUExternalTexture; + new(): GPUExternalTexture; +}; + +/** + * The **`GPUInternalError`** interface of the WebGPU API describes an application error indicating that an operation failed for a system or implementation-specific reason, even when all validation requirements were satisfied. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError) + */ +interface GPUInternalError extends GPUError { +} + +declare var GPUInternalError: { + prototype: GPUInternalError; + new(message: string): GPUInternalError; +}; + +interface GPUObjectBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */ + label: string; +} + +/** + * The **`GPUOutOfMemoryError`** interface of the WebGPU API describes an out-of-memory (oom) error indicating that there was not enough free memory to complete the requested operation. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError) + */ +interface GPUOutOfMemoryError extends GPUError { +} + +declare var GPUOutOfMemoryError: { + prototype: GPUOutOfMemoryError; + new(message: string): GPUOutOfMemoryError; +}; + +interface GPUPipelineBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */ + getBindGroupLayout(index: number): GPUBindGroupLayout; +} + /** * The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure. This is the value received when a Promise returned by a GPUDevice.createComputePipelineAsync() or GPUDevice.createRenderPipelineAsync() call rejects. * Available only in secure contexts. @@ -4215,6 +4353,125 @@ declare var GPUPipelineError: { new(message: string, options: GPUPipelineErrorInit): GPUPipelineError; }; +/** + * The **`GPUPipelineLayout`** interface of the WebGPU API defines the GPUBindGroupLayouts used by a pipeline. GPUBindGroups used with the pipeline during command encoding must have compatible GPUBindGroupLayouts. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout) + */ +interface GPUPipelineLayout extends GPUObjectBase { +} + +declare var GPUPipelineLayout: { + prototype: GPUPipelineLayout; + new(): GPUPipelineLayout; +}; + +/** + * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle) + */ +interface GPURenderBundle extends GPUObjectBase { +} + +declare var GPURenderBundle: { + prototype: GPURenderBundle; + new(): GPURenderBundle; +}; + +/** + * The **`GPURenderPipeline`** interface of the WebGPU API represents a pipeline that controls the vertex and fragment shader stages and can be used in a GPURenderPassEncoder or GPURenderBundleEncoder. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline) + */ +interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase { +} + +declare var GPURenderPipeline: { + prototype: GPURenderPipeline; + new(): GPURenderPipeline; +}; + +/** + * The **`GPUSampler`** interface of the WebGPU API represents an object that can control how shaders transform and filter texture resource data. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler) + */ +interface GPUSampler extends GPUObjectBase { +} + +declare var GPUSampler: { + prototype: GPUSampler; + new(): GPUSampler; +}; + +/** + * The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures) + */ +interface GPUSupportedFeatures { + forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void; +} + +declare var GPUSupportedFeatures: { + prototype: GPUSupportedFeatures; + new(): GPUSupportedFeatures; +}; + +/** + * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView) + */ +interface GPUTextureView extends GPUObjectBase { +} + +declare var GPUTextureView: { + prototype: GPUTextureView; + new(): GPUTextureView; +}; + +/** + * The **`GPUUncapturedErrorEvent`** interface of the WebGPU API is the event object type for the GPUDevice uncapturederror event, used for telemetry and to report unexpected errors. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent) + */ +interface GPUUncapturedErrorEvent extends Event { + /** + * The **`error`** read-only property of the GPUUncapturedErrorEvent interface is a GPUError object instance providing access to the details of the error. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error) + */ + readonly error: GPUError; +} + +declare var GPUUncapturedErrorEvent: { + prototype: GPUUncapturedErrorEvent; + new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent; +}; + +/** + * The **`GPUValidationError`** interface of the WebGPU API describes an application error indicating that an operation did not pass the WebGPU API's validation constraints. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError) + */ +interface GPUValidationError extends GPUError { +} + +declare var GPUValidationError: { + prototype: GPUValidationError; + new(message: string): GPUValidationError; +}; + interface GenericTransformStream { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */ readonly readable: ReadableStream; @@ -8235,6 +8492,21 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +/** + * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures) + */ +interface WGSLLanguageFeatures { + forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void; +} + +declare var WGSLLanguageFeatures: { + prototype: WGSLLanguageFeatures; + new(): WGSLLanguageFeatures; +}; + /** * The **`WebGL2RenderingContext`** interface provides the OpenGL ES 3.0 rendering context for the drawing surface of an HTML element. * @@ -11804,6 +12076,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 GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; diff --git a/baselines/ts5.6/serviceworker.iterable.generated.d.ts b/baselines/ts5.6/serviceworker.iterable.generated.d.ts index 15e3319cd..d111b8b5d 100644 --- a/baselines/ts5.6/serviceworker.iterable.generated.d.ts +++ b/baselines/ts5.6/serviceworker.iterable.generated.d.ts @@ -82,6 +82,9 @@ interface FormData { values(): FormDataIterator; } +interface GPUSupportedFeatures extends ReadonlySet { +} + interface HeadersIterator extends IteratorObject { [Symbol.iterator](): HeadersIterator; } @@ -212,6 +215,9 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable, offsetsOffset: number, drawcount: GLsizei): void; } +interface WGSLLanguageFeatures extends ReadonlySet { +} + interface WebGL2RenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable, srcOffset?: number): void; diff --git a/baselines/ts5.6/sharedworker.generated.d.ts b/baselines/ts5.6/sharedworker.generated.d.ts index 2fd5322ab..636e95ac2 100644 --- a/baselines/ts5.6/sharedworker.generated.d.ts +++ b/baselines/ts5.6/sharedworker.generated.d.ts @@ -217,6 +217,10 @@ interface GPUPipelineErrorInit { reason: GPUPipelineErrorReason; } +interface GPUUncapturedErrorEventInit extends EventInit { + error: GPUError; +} + interface GetNotificationOptions { tag?: string; } @@ -3858,6 +3862,88 @@ declare var FormData: { new(): FormData; }; +/** + * The **`GPUBindGroup`** interface of the WebGPU API is based on a GPUBindGroupLayout and defines a set of resources to be bound together in a group and how those resources are used in shader stages. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup) + */ +interface GPUBindGroup extends GPUObjectBase { +} + +declare var GPUBindGroup: { + prototype: GPUBindGroup; + new(): GPUBindGroup; +}; + +/** + * The **`GPUBindGroupLayout`** interface of the WebGPU API defines the structure and purpose of related GPU resources such as buffers that will be used in a pipeline, and is used as a template when creating GPUBindGroups. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroupLayout) + */ +interface GPUBindGroupLayout extends GPUObjectBase { +} + +declare var GPUBindGroupLayout: { + prototype: GPUBindGroupLayout; + new(): GPUBindGroupLayout; +}; + +/** + * The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer) + */ +interface GPUCommandBuffer extends GPUObjectBase { +} + +declare var GPUCommandBuffer: { + prototype: GPUCommandBuffer; + new(): GPUCommandBuffer; +}; + +/** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline) + */ +interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase { +} + +declare var GPUComputePipeline: { + prototype: GPUComputePipeline; + new(): GPUComputePipeline; +}; + +/** + * The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo) + */ +interface GPUDeviceLostInfo { + /** + * The **`message`** read-only property of the GPUDeviceLostInfo interface provides a human-readable message that explains why the device was lost. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message) + */ + readonly message: string; + /** + * The **`reason`** read-only property of the GPUDeviceLostInfo interface defines the reason the device was lost in a machine-readable way. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason) + */ + readonly reason: GPUDeviceLostReason; +} + +declare var GPUDeviceLostInfo: { + prototype: GPUDeviceLostInfo; + new(): GPUDeviceLostInfo; +}; + /** * The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the uncapturederror event. * Available only in secure contexts. @@ -3878,6 +3964,58 @@ declare var GPUError: { new(): GPUError; }; +/** + * The **`GPUExternalTexture`** interface of the WebGPU API represents a wrapper object containing an HTMLVideoElement snapshot that can be used as a texture in GPU rendering operations. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture) + */ +interface GPUExternalTexture extends GPUObjectBase { +} + +declare var GPUExternalTexture: { + prototype: GPUExternalTexture; + new(): GPUExternalTexture; +}; + +/** + * The **`GPUInternalError`** interface of the WebGPU API describes an application error indicating that an operation failed for a system or implementation-specific reason, even when all validation requirements were satisfied. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError) + */ +interface GPUInternalError extends GPUError { +} + +declare var GPUInternalError: { + prototype: GPUInternalError; + new(message: string): GPUInternalError; +}; + +interface GPUObjectBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */ + label: string; +} + +/** + * The **`GPUOutOfMemoryError`** interface of the WebGPU API describes an out-of-memory (oom) error indicating that there was not enough free memory to complete the requested operation. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError) + */ +interface GPUOutOfMemoryError extends GPUError { +} + +declare var GPUOutOfMemoryError: { + prototype: GPUOutOfMemoryError; + new(message: string): GPUOutOfMemoryError; +}; + +interface GPUPipelineBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */ + getBindGroupLayout(index: number): GPUBindGroupLayout; +} + /** * The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure. This is the value received when a Promise returned by a GPUDevice.createComputePipelineAsync() or GPUDevice.createRenderPipelineAsync() call rejects. * Available only in secure contexts. @@ -3898,6 +4036,125 @@ declare var GPUPipelineError: { new(message: string, options: GPUPipelineErrorInit): GPUPipelineError; }; +/** + * The **`GPUPipelineLayout`** interface of the WebGPU API defines the GPUBindGroupLayouts used by a pipeline. GPUBindGroups used with the pipeline during command encoding must have compatible GPUBindGroupLayouts. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout) + */ +interface GPUPipelineLayout extends GPUObjectBase { +} + +declare var GPUPipelineLayout: { + prototype: GPUPipelineLayout; + new(): GPUPipelineLayout; +}; + +/** + * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle) + */ +interface GPURenderBundle extends GPUObjectBase { +} + +declare var GPURenderBundle: { + prototype: GPURenderBundle; + new(): GPURenderBundle; +}; + +/** + * The **`GPURenderPipeline`** interface of the WebGPU API represents a pipeline that controls the vertex and fragment shader stages and can be used in a GPURenderPassEncoder or GPURenderBundleEncoder. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline) + */ +interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase { +} + +declare var GPURenderPipeline: { + prototype: GPURenderPipeline; + new(): GPURenderPipeline; +}; + +/** + * The **`GPUSampler`** interface of the WebGPU API represents an object that can control how shaders transform and filter texture resource data. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler) + */ +interface GPUSampler extends GPUObjectBase { +} + +declare var GPUSampler: { + prototype: GPUSampler; + new(): GPUSampler; +}; + +/** + * The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures) + */ +interface GPUSupportedFeatures { + forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void; +} + +declare var GPUSupportedFeatures: { + prototype: GPUSupportedFeatures; + new(): GPUSupportedFeatures; +}; + +/** + * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView) + */ +interface GPUTextureView extends GPUObjectBase { +} + +declare var GPUTextureView: { + prototype: GPUTextureView; + new(): GPUTextureView; +}; + +/** + * The **`GPUUncapturedErrorEvent`** interface of the WebGPU API is the event object type for the GPUDevice uncapturederror event, used for telemetry and to report unexpected errors. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent) + */ +interface GPUUncapturedErrorEvent extends Event { + /** + * The **`error`** read-only property of the GPUUncapturedErrorEvent interface is a GPUError object instance providing access to the details of the error. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error) + */ + readonly error: GPUError; +} + +declare var GPUUncapturedErrorEvent: { + prototype: GPUUncapturedErrorEvent; + new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent; +}; + +/** + * The **`GPUValidationError`** interface of the WebGPU API describes an application error indicating that an operation did not pass the WebGPU API's validation constraints. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError) + */ +interface GPUValidationError extends GPUError { +} + +declare var GPUValidationError: { + prototype: GPUValidationError; + new(message: string): GPUValidationError; +}; + interface GenericTransformStream { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */ readonly readable: ReadableStream; @@ -7772,6 +8029,21 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +/** + * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures) + */ +interface WGSLLanguageFeatures { + forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void; +} + +declare var WGSLLanguageFeatures: { + prototype: WGSLLanguageFeatures; + new(): WGSLLanguageFeatures; +}; + /** * The **`WebGL2RenderingContext`** interface provides the OpenGL ES 3.0 rendering context for the drawing surface of an HTML element. * @@ -11483,6 +11755,7 @@ type FileSystemHandleKind = "directory" | "file"; type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; +type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; diff --git a/baselines/ts5.6/sharedworker.iterable.generated.d.ts b/baselines/ts5.6/sharedworker.iterable.generated.d.ts index bd7bd0940..c06815f97 100644 --- a/baselines/ts5.6/sharedworker.iterable.generated.d.ts +++ b/baselines/ts5.6/sharedworker.iterable.generated.d.ts @@ -67,6 +67,9 @@ interface FormData { values(): FormDataIterator; } +interface GPUSupportedFeatures extends ReadonlySet { +} + interface HeadersIterator extends IteratorObject { [Symbol.iterator](): HeadersIterator; } @@ -197,6 +200,9 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable, offsetsOffset: number, drawcount: GLsizei): void; } +interface WGSLLanguageFeatures extends ReadonlySet { +} + interface WebGL2RenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable, srcOffset?: number): void; diff --git a/baselines/ts5.6/webworker.generated.d.ts b/baselines/ts5.6/webworker.generated.d.ts index 1b966b775..be37ed942 100644 --- a/baselines/ts5.6/webworker.generated.d.ts +++ b/baselines/ts5.6/webworker.generated.d.ts @@ -363,6 +363,10 @@ interface GPUPipelineErrorInit { reason: GPUPipelineErrorReason; } +interface GPUUncapturedErrorEventInit extends EventInit { + error: GPUError; +} + interface GetNotificationOptions { tag?: string; } @@ -4877,6 +4881,88 @@ declare var FormData: { new(): FormData; }; +/** + * The **`GPUBindGroup`** interface of the WebGPU API is based on a GPUBindGroupLayout and defines a set of resources to be bound together in a group and how those resources are used in shader stages. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup) + */ +interface GPUBindGroup extends GPUObjectBase { +} + +declare var GPUBindGroup: { + prototype: GPUBindGroup; + new(): GPUBindGroup; +}; + +/** + * The **`GPUBindGroupLayout`** interface of the WebGPU API defines the structure and purpose of related GPU resources such as buffers that will be used in a pipeline, and is used as a template when creating GPUBindGroups. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroupLayout) + */ +interface GPUBindGroupLayout extends GPUObjectBase { +} + +declare var GPUBindGroupLayout: { + prototype: GPUBindGroupLayout; + new(): GPUBindGroupLayout; +}; + +/** + * The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer) + */ +interface GPUCommandBuffer extends GPUObjectBase { +} + +declare var GPUCommandBuffer: { + prototype: GPUCommandBuffer; + new(): GPUCommandBuffer; +}; + +/** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline) + */ +interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase { +} + +declare var GPUComputePipeline: { + prototype: GPUComputePipeline; + new(): GPUComputePipeline; +}; + +/** + * The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo) + */ +interface GPUDeviceLostInfo { + /** + * The **`message`** read-only property of the GPUDeviceLostInfo interface provides a human-readable message that explains why the device was lost. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message) + */ + readonly message: string; + /** + * The **`reason`** read-only property of the GPUDeviceLostInfo interface defines the reason the device was lost in a machine-readable way. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason) + */ + readonly reason: GPUDeviceLostReason; +} + +declare var GPUDeviceLostInfo: { + prototype: GPUDeviceLostInfo; + new(): GPUDeviceLostInfo; +}; + /** * The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the uncapturederror event. * Available only in secure contexts. @@ -4897,6 +4983,58 @@ declare var GPUError: { new(): GPUError; }; +/** + * The **`GPUExternalTexture`** interface of the WebGPU API represents a wrapper object containing an HTMLVideoElement snapshot that can be used as a texture in GPU rendering operations. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture) + */ +interface GPUExternalTexture extends GPUObjectBase { +} + +declare var GPUExternalTexture: { + prototype: GPUExternalTexture; + new(): GPUExternalTexture; +}; + +/** + * The **`GPUInternalError`** interface of the WebGPU API describes an application error indicating that an operation failed for a system or implementation-specific reason, even when all validation requirements were satisfied. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError) + */ +interface GPUInternalError extends GPUError { +} + +declare var GPUInternalError: { + prototype: GPUInternalError; + new(message: string): GPUInternalError; +}; + +interface GPUObjectBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */ + label: string; +} + +/** + * The **`GPUOutOfMemoryError`** interface of the WebGPU API describes an out-of-memory (oom) error indicating that there was not enough free memory to complete the requested operation. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError) + */ +interface GPUOutOfMemoryError extends GPUError { +} + +declare var GPUOutOfMemoryError: { + prototype: GPUOutOfMemoryError; + new(message: string): GPUOutOfMemoryError; +}; + +interface GPUPipelineBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */ + getBindGroupLayout(index: number): GPUBindGroupLayout; +} + /** * The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure. This is the value received when a Promise returned by a GPUDevice.createComputePipelineAsync() or GPUDevice.createRenderPipelineAsync() call rejects. * Available only in secure contexts. @@ -4917,6 +5055,125 @@ declare var GPUPipelineError: { new(message: string, options: GPUPipelineErrorInit): GPUPipelineError; }; +/** + * The **`GPUPipelineLayout`** interface of the WebGPU API defines the GPUBindGroupLayouts used by a pipeline. GPUBindGroups used with the pipeline during command encoding must have compatible GPUBindGroupLayouts. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout) + */ +interface GPUPipelineLayout extends GPUObjectBase { +} + +declare var GPUPipelineLayout: { + prototype: GPUPipelineLayout; + new(): GPUPipelineLayout; +}; + +/** + * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle) + */ +interface GPURenderBundle extends GPUObjectBase { +} + +declare var GPURenderBundle: { + prototype: GPURenderBundle; + new(): GPURenderBundle; +}; + +/** + * The **`GPURenderPipeline`** interface of the WebGPU API represents a pipeline that controls the vertex and fragment shader stages and can be used in a GPURenderPassEncoder or GPURenderBundleEncoder. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline) + */ +interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase { +} + +declare var GPURenderPipeline: { + prototype: GPURenderPipeline; + new(): GPURenderPipeline; +}; + +/** + * The **`GPUSampler`** interface of the WebGPU API represents an object that can control how shaders transform and filter texture resource data. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler) + */ +interface GPUSampler extends GPUObjectBase { +} + +declare var GPUSampler: { + prototype: GPUSampler; + new(): GPUSampler; +}; + +/** + * The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures) + */ +interface GPUSupportedFeatures { + forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void; +} + +declare var GPUSupportedFeatures: { + prototype: GPUSupportedFeatures; + new(): GPUSupportedFeatures; +}; + +/** + * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView) + */ +interface GPUTextureView extends GPUObjectBase { +} + +declare var GPUTextureView: { + prototype: GPUTextureView; + new(): GPUTextureView; +}; + +/** + * The **`GPUUncapturedErrorEvent`** interface of the WebGPU API is the event object type for the GPUDevice uncapturederror event, used for telemetry and to report unexpected errors. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent) + */ +interface GPUUncapturedErrorEvent extends Event { + /** + * The **`error`** read-only property of the GPUUncapturedErrorEvent interface is a GPUError object instance providing access to the details of the error. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error) + */ + readonly error: GPUError; +} + +declare var GPUUncapturedErrorEvent: { + prototype: GPUUncapturedErrorEvent; + new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent; +}; + +/** + * The **`GPUValidationError`** interface of the WebGPU API describes an application error indicating that an operation did not pass the WebGPU API's validation constraints. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError) + */ +interface GPUValidationError extends GPUError { +} + +declare var GPUValidationError: { + prototype: GPUValidationError; + new(message: string): GPUValidationError; +}; + interface GenericTransformStream { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */ readonly readable: ReadableStream; @@ -9689,6 +9946,21 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +/** + * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures) + */ +interface WGSLLanguageFeatures { + forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void; +} + +declare var WGSLLanguageFeatures: { + prototype: WGSLLanguageFeatures; + new(): WGSLLanguageFeatures; +}; + /** * The **`WebGL2RenderingContext`** interface provides the OpenGL ES 3.0 rendering context for the drawing surface of an HTML element. * @@ -13490,6 +13762,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 GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software"; diff --git a/baselines/ts5.6/webworker.iterable.generated.d.ts b/baselines/ts5.6/webworker.iterable.generated.d.ts index 7b355183b..ba65a889e 100644 --- a/baselines/ts5.6/webworker.iterable.generated.d.ts +++ b/baselines/ts5.6/webworker.iterable.generated.d.ts @@ -82,6 +82,9 @@ interface FormData { values(): FormDataIterator; } +interface GPUSupportedFeatures extends ReadonlySet { +} + interface HeadersIterator extends IteratorObject { [Symbol.iterator](): HeadersIterator; } @@ -216,6 +219,9 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable, offsetsOffset: number, drawcount: GLsizei): void; } +interface WGSLLanguageFeatures extends ReadonlySet { +} + interface WebGL2RenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable, srcOffset?: number): void; diff --git a/baselines/ts5.9/dom.generated.d.ts b/baselines/ts5.9/dom.generated.d.ts index ff1be1358..d79e0f974 100644 --- a/baselines/ts5.9/dom.generated.d.ts +++ b/baselines/ts5.9/dom.generated.d.ts @@ -806,6 +806,10 @@ interface GPUPipelineErrorInit { reason: GPUPipelineErrorReason; } +interface GPUUncapturedErrorEventInit extends EventInit { + error: GPUError; +} + interface GainOptions extends AudioNodeOptions { gain?: number; } @@ -12555,6 +12559,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve createEvent(eventInterface: "FocusEvent"): FocusEvent; createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent; createEvent(eventInterface: "FormDataEvent"): FormDataEvent; + createEvent(eventInterface: "GPUUncapturedErrorEvent"): GPUUncapturedErrorEvent; createEvent(eventInterface: "GamepadEvent"): GamepadEvent; createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent; createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent; @@ -14697,6 +14702,88 @@ declare var FragmentDirective: { new(): FragmentDirective; }; +/** + * The **`GPUBindGroup`** interface of the WebGPU API is based on a GPUBindGroupLayout and defines a set of resources to be bound together in a group and how those resources are used in shader stages. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup) + */ +interface GPUBindGroup extends GPUObjectBase { +} + +declare var GPUBindGroup: { + prototype: GPUBindGroup; + new(): GPUBindGroup; +}; + +/** + * The **`GPUBindGroupLayout`** interface of the WebGPU API defines the structure and purpose of related GPU resources such as buffers that will be used in a pipeline, and is used as a template when creating GPUBindGroups. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroupLayout) + */ +interface GPUBindGroupLayout extends GPUObjectBase { +} + +declare var GPUBindGroupLayout: { + prototype: GPUBindGroupLayout; + new(): GPUBindGroupLayout; +}; + +/** + * The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer) + */ +interface GPUCommandBuffer extends GPUObjectBase { +} + +declare var GPUCommandBuffer: { + prototype: GPUCommandBuffer; + new(): GPUCommandBuffer; +}; + +/** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline) + */ +interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase { +} + +declare var GPUComputePipeline: { + prototype: GPUComputePipeline; + new(): GPUComputePipeline; +}; + +/** + * The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo) + */ +interface GPUDeviceLostInfo { + /** + * The **`message`** read-only property of the GPUDeviceLostInfo interface provides a human-readable message that explains why the device was lost. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message) + */ + readonly message: string; + /** + * The **`reason`** read-only property of the GPUDeviceLostInfo interface defines the reason the device was lost in a machine-readable way. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason) + */ + readonly reason: GPUDeviceLostReason; +} + +declare var GPUDeviceLostInfo: { + prototype: GPUDeviceLostInfo; + new(): GPUDeviceLostInfo; +}; + /** * The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the uncapturederror event. * Available only in secure contexts. @@ -14717,6 +14804,58 @@ declare var GPUError: { new(): GPUError; }; +/** + * The **`GPUExternalTexture`** interface of the WebGPU API represents a wrapper object containing an HTMLVideoElement snapshot that can be used as a texture in GPU rendering operations. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture) + */ +interface GPUExternalTexture extends GPUObjectBase { +} + +declare var GPUExternalTexture: { + prototype: GPUExternalTexture; + new(): GPUExternalTexture; +}; + +/** + * The **`GPUInternalError`** interface of the WebGPU API describes an application error indicating that an operation failed for a system or implementation-specific reason, even when all validation requirements were satisfied. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError) + */ +interface GPUInternalError extends GPUError { +} + +declare var GPUInternalError: { + prototype: GPUInternalError; + new(message: string): GPUInternalError; +}; + +interface GPUObjectBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */ + label: string; +} + +/** + * The **`GPUOutOfMemoryError`** interface of the WebGPU API describes an out-of-memory (oom) error indicating that there was not enough free memory to complete the requested operation. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError) + */ +interface GPUOutOfMemoryError extends GPUError { +} + +declare var GPUOutOfMemoryError: { + prototype: GPUOutOfMemoryError; + new(message: string): GPUOutOfMemoryError; +}; + +interface GPUPipelineBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */ + getBindGroupLayout(index: number): GPUBindGroupLayout; +} + /** * The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure. This is the value received when a Promise returned by a GPUDevice.createComputePipelineAsync() or GPUDevice.createRenderPipelineAsync() call rejects. * Available only in secure contexts. @@ -14737,6 +14876,125 @@ declare var GPUPipelineError: { new(message: string, options: GPUPipelineErrorInit): GPUPipelineError; }; +/** + * The **`GPUPipelineLayout`** interface of the WebGPU API defines the GPUBindGroupLayouts used by a pipeline. GPUBindGroups used with the pipeline during command encoding must have compatible GPUBindGroupLayouts. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout) + */ +interface GPUPipelineLayout extends GPUObjectBase { +} + +declare var GPUPipelineLayout: { + prototype: GPUPipelineLayout; + new(): GPUPipelineLayout; +}; + +/** + * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle) + */ +interface GPURenderBundle extends GPUObjectBase { +} + +declare var GPURenderBundle: { + prototype: GPURenderBundle; + new(): GPURenderBundle; +}; + +/** + * The **`GPURenderPipeline`** interface of the WebGPU API represents a pipeline that controls the vertex and fragment shader stages and can be used in a GPURenderPassEncoder or GPURenderBundleEncoder. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline) + */ +interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase { +} + +declare var GPURenderPipeline: { + prototype: GPURenderPipeline; + new(): GPURenderPipeline; +}; + +/** + * The **`GPUSampler`** interface of the WebGPU API represents an object that can control how shaders transform and filter texture resource data. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler) + */ +interface GPUSampler extends GPUObjectBase { +} + +declare var GPUSampler: { + prototype: GPUSampler; + new(): GPUSampler; +}; + +/** + * The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures) + */ +interface GPUSupportedFeatures { + forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void; +} + +declare var GPUSupportedFeatures: { + prototype: GPUSupportedFeatures; + new(): GPUSupportedFeatures; +}; + +/** + * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView) + */ +interface GPUTextureView extends GPUObjectBase { +} + +declare var GPUTextureView: { + prototype: GPUTextureView; + new(): GPUTextureView; +}; + +/** + * The **`GPUUncapturedErrorEvent`** interface of the WebGPU API is the event object type for the GPUDevice uncapturederror event, used for telemetry and to report unexpected errors. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent) + */ +interface GPUUncapturedErrorEvent extends Event { + /** + * The **`error`** read-only property of the GPUUncapturedErrorEvent interface is a GPUError object instance providing access to the details of the error. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error) + */ + readonly error: GPUError; +} + +declare var GPUUncapturedErrorEvent: { + prototype: GPUUncapturedErrorEvent; + new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent; +}; + +/** + * The **`GPUValidationError`** interface of the WebGPU API describes an application error indicating that an operation did not pass the WebGPU API's validation constraints. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError) + */ +interface GPUValidationError extends GPUError { +} + +declare var GPUValidationError: { + prototype: GPUValidationError; + new(message: string): GPUValidationError; +}; + /** * The **`GainNode`** interface represents a change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels. * @@ -36817,6 +37075,21 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +/** + * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures) + */ +interface WGSLLanguageFeatures { + forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void; +} + +declare var WGSLLanguageFeatures: { + prototype: WGSLLanguageFeatures; + new(): WGSLLanguageFeatures; +}; + /** * The **`WakeLock`** interface of the Screen Wake Lock API can be used to request a lock that prevents device screens from dimming or locking when an application needs to keep running. * Available only in secure contexts. @@ -42569,6 +42842,7 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; type FullscreenNavigationUI = "auto" | "hide" | "show"; +type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble"; type GamepadHapticsResult = "complete" | "preempted"; diff --git a/baselines/ts5.9/dom.iterable.generated.d.ts b/baselines/ts5.9/dom.iterable.generated.d.ts index a83d934a3..f6497ce8e 100644 --- a/baselines/ts5.9/dom.iterable.generated.d.ts +++ b/baselines/ts5.9/dom.iterable.generated.d.ts @@ -142,6 +142,9 @@ interface FormData { values(): FormDataIterator; } +interface GPUSupportedFeatures extends ReadonlySet { +} + interface HTMLAllCollection { [Symbol.iterator](): ArrayIterator; } @@ -447,6 +450,9 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable, offsetsOffset: number, drawcount: GLsizei): void; } +interface WGSLLanguageFeatures extends ReadonlySet { +} + interface WebGL2RenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable, srcOffset?: number): void; diff --git a/baselines/ts5.9/serviceworker.generated.d.ts b/baselines/ts5.9/serviceworker.generated.d.ts index 164909a7a..5ba67c80f 100644 --- a/baselines/ts5.9/serviceworker.generated.d.ts +++ b/baselines/ts5.9/serviceworker.generated.d.ts @@ -273,6 +273,10 @@ interface GPUPipelineErrorInit { reason: GPUPipelineErrorReason; } +interface GPUUncapturedErrorEventInit extends EventInit { + error: GPUError; +} + interface GetNotificationOptions { tag?: string; } @@ -4175,6 +4179,88 @@ declare var FormData: { new(): FormData; }; +/** + * The **`GPUBindGroup`** interface of the WebGPU API is based on a GPUBindGroupLayout and defines a set of resources to be bound together in a group and how those resources are used in shader stages. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup) + */ +interface GPUBindGroup extends GPUObjectBase { +} + +declare var GPUBindGroup: { + prototype: GPUBindGroup; + new(): GPUBindGroup; +}; + +/** + * The **`GPUBindGroupLayout`** interface of the WebGPU API defines the structure and purpose of related GPU resources such as buffers that will be used in a pipeline, and is used as a template when creating GPUBindGroups. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroupLayout) + */ +interface GPUBindGroupLayout extends GPUObjectBase { +} + +declare var GPUBindGroupLayout: { + prototype: GPUBindGroupLayout; + new(): GPUBindGroupLayout; +}; + +/** + * The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer) + */ +interface GPUCommandBuffer extends GPUObjectBase { +} + +declare var GPUCommandBuffer: { + prototype: GPUCommandBuffer; + new(): GPUCommandBuffer; +}; + +/** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline) + */ +interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase { +} + +declare var GPUComputePipeline: { + prototype: GPUComputePipeline; + new(): GPUComputePipeline; +}; + +/** + * The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo) + */ +interface GPUDeviceLostInfo { + /** + * The **`message`** read-only property of the GPUDeviceLostInfo interface provides a human-readable message that explains why the device was lost. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message) + */ + readonly message: string; + /** + * The **`reason`** read-only property of the GPUDeviceLostInfo interface defines the reason the device was lost in a machine-readable way. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason) + */ + readonly reason: GPUDeviceLostReason; +} + +declare var GPUDeviceLostInfo: { + prototype: GPUDeviceLostInfo; + new(): GPUDeviceLostInfo; +}; + /** * The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the uncapturederror event. * Available only in secure contexts. @@ -4195,6 +4281,58 @@ declare var GPUError: { new(): GPUError; }; +/** + * The **`GPUExternalTexture`** interface of the WebGPU API represents a wrapper object containing an HTMLVideoElement snapshot that can be used as a texture in GPU rendering operations. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture) + */ +interface GPUExternalTexture extends GPUObjectBase { +} + +declare var GPUExternalTexture: { + prototype: GPUExternalTexture; + new(): GPUExternalTexture; +}; + +/** + * The **`GPUInternalError`** interface of the WebGPU API describes an application error indicating that an operation failed for a system or implementation-specific reason, even when all validation requirements were satisfied. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError) + */ +interface GPUInternalError extends GPUError { +} + +declare var GPUInternalError: { + prototype: GPUInternalError; + new(message: string): GPUInternalError; +}; + +interface GPUObjectBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */ + label: string; +} + +/** + * The **`GPUOutOfMemoryError`** interface of the WebGPU API describes an out-of-memory (oom) error indicating that there was not enough free memory to complete the requested operation. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError) + */ +interface GPUOutOfMemoryError extends GPUError { +} + +declare var GPUOutOfMemoryError: { + prototype: GPUOutOfMemoryError; + new(message: string): GPUOutOfMemoryError; +}; + +interface GPUPipelineBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */ + getBindGroupLayout(index: number): GPUBindGroupLayout; +} + /** * The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure. This is the value received when a Promise returned by a GPUDevice.createComputePipelineAsync() or GPUDevice.createRenderPipelineAsync() call rejects. * Available only in secure contexts. @@ -4215,6 +4353,125 @@ declare var GPUPipelineError: { new(message: string, options: GPUPipelineErrorInit): GPUPipelineError; }; +/** + * The **`GPUPipelineLayout`** interface of the WebGPU API defines the GPUBindGroupLayouts used by a pipeline. GPUBindGroups used with the pipeline during command encoding must have compatible GPUBindGroupLayouts. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout) + */ +interface GPUPipelineLayout extends GPUObjectBase { +} + +declare var GPUPipelineLayout: { + prototype: GPUPipelineLayout; + new(): GPUPipelineLayout; +}; + +/** + * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle) + */ +interface GPURenderBundle extends GPUObjectBase { +} + +declare var GPURenderBundle: { + prototype: GPURenderBundle; + new(): GPURenderBundle; +}; + +/** + * The **`GPURenderPipeline`** interface of the WebGPU API represents a pipeline that controls the vertex and fragment shader stages and can be used in a GPURenderPassEncoder or GPURenderBundleEncoder. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline) + */ +interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase { +} + +declare var GPURenderPipeline: { + prototype: GPURenderPipeline; + new(): GPURenderPipeline; +}; + +/** + * The **`GPUSampler`** interface of the WebGPU API represents an object that can control how shaders transform and filter texture resource data. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler) + */ +interface GPUSampler extends GPUObjectBase { +} + +declare var GPUSampler: { + prototype: GPUSampler; + new(): GPUSampler; +}; + +/** + * The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures) + */ +interface GPUSupportedFeatures { + forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void; +} + +declare var GPUSupportedFeatures: { + prototype: GPUSupportedFeatures; + new(): GPUSupportedFeatures; +}; + +/** + * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView) + */ +interface GPUTextureView extends GPUObjectBase { +} + +declare var GPUTextureView: { + prototype: GPUTextureView; + new(): GPUTextureView; +}; + +/** + * The **`GPUUncapturedErrorEvent`** interface of the WebGPU API is the event object type for the GPUDevice uncapturederror event, used for telemetry and to report unexpected errors. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent) + */ +interface GPUUncapturedErrorEvent extends Event { + /** + * The **`error`** read-only property of the GPUUncapturedErrorEvent interface is a GPUError object instance providing access to the details of the error. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error) + */ + readonly error: GPUError; +} + +declare var GPUUncapturedErrorEvent: { + prototype: GPUUncapturedErrorEvent; + new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent; +}; + +/** + * The **`GPUValidationError`** interface of the WebGPU API describes an application error indicating that an operation did not pass the WebGPU API's validation constraints. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError) + */ +interface GPUValidationError extends GPUError { +} + +declare var GPUValidationError: { + prototype: GPUValidationError; + new(message: string): GPUValidationError; +}; + interface GenericTransformStream { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */ readonly readable: ReadableStream; @@ -8235,6 +8492,21 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +/** + * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures) + */ +interface WGSLLanguageFeatures { + forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void; +} + +declare var WGSLLanguageFeatures: { + prototype: WGSLLanguageFeatures; + new(): WGSLLanguageFeatures; +}; + /** * The **`WebGL2RenderingContext`** interface provides the OpenGL ES 3.0 rendering context for the drawing surface of an HTML element. * @@ -11804,6 +12076,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 GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; diff --git a/baselines/ts5.9/serviceworker.iterable.generated.d.ts b/baselines/ts5.9/serviceworker.iterable.generated.d.ts index 465075909..eca777792 100644 --- a/baselines/ts5.9/serviceworker.iterable.generated.d.ts +++ b/baselines/ts5.9/serviceworker.iterable.generated.d.ts @@ -82,6 +82,9 @@ interface FormData { values(): FormDataIterator; } +interface GPUSupportedFeatures extends ReadonlySet { +} + interface HeadersIterator extends IteratorObject { [Symbol.iterator](): HeadersIterator; } @@ -212,6 +215,9 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable, offsetsOffset: number, drawcount: GLsizei): void; } +interface WGSLLanguageFeatures extends ReadonlySet { +} + interface WebGL2RenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable, srcOffset?: number): void; diff --git a/baselines/ts5.9/sharedworker.generated.d.ts b/baselines/ts5.9/sharedworker.generated.d.ts index 404a031ad..cd0325b4e 100644 --- a/baselines/ts5.9/sharedworker.generated.d.ts +++ b/baselines/ts5.9/sharedworker.generated.d.ts @@ -217,6 +217,10 @@ interface GPUPipelineErrorInit { reason: GPUPipelineErrorReason; } +interface GPUUncapturedErrorEventInit extends EventInit { + error: GPUError; +} + interface GetNotificationOptions { tag?: string; } @@ -3858,6 +3862,88 @@ declare var FormData: { new(): FormData; }; +/** + * The **`GPUBindGroup`** interface of the WebGPU API is based on a GPUBindGroupLayout and defines a set of resources to be bound together in a group and how those resources are used in shader stages. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup) + */ +interface GPUBindGroup extends GPUObjectBase { +} + +declare var GPUBindGroup: { + prototype: GPUBindGroup; + new(): GPUBindGroup; +}; + +/** + * The **`GPUBindGroupLayout`** interface of the WebGPU API defines the structure and purpose of related GPU resources such as buffers that will be used in a pipeline, and is used as a template when creating GPUBindGroups. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroupLayout) + */ +interface GPUBindGroupLayout extends GPUObjectBase { +} + +declare var GPUBindGroupLayout: { + prototype: GPUBindGroupLayout; + new(): GPUBindGroupLayout; +}; + +/** + * The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer) + */ +interface GPUCommandBuffer extends GPUObjectBase { +} + +declare var GPUCommandBuffer: { + prototype: GPUCommandBuffer; + new(): GPUCommandBuffer; +}; + +/** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline) + */ +interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase { +} + +declare var GPUComputePipeline: { + prototype: GPUComputePipeline; + new(): GPUComputePipeline; +}; + +/** + * The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo) + */ +interface GPUDeviceLostInfo { + /** + * The **`message`** read-only property of the GPUDeviceLostInfo interface provides a human-readable message that explains why the device was lost. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message) + */ + readonly message: string; + /** + * The **`reason`** read-only property of the GPUDeviceLostInfo interface defines the reason the device was lost in a machine-readable way. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason) + */ + readonly reason: GPUDeviceLostReason; +} + +declare var GPUDeviceLostInfo: { + prototype: GPUDeviceLostInfo; + new(): GPUDeviceLostInfo; +}; + /** * The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the uncapturederror event. * Available only in secure contexts. @@ -3878,6 +3964,58 @@ declare var GPUError: { new(): GPUError; }; +/** + * The **`GPUExternalTexture`** interface of the WebGPU API represents a wrapper object containing an HTMLVideoElement snapshot that can be used as a texture in GPU rendering operations. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture) + */ +interface GPUExternalTexture extends GPUObjectBase { +} + +declare var GPUExternalTexture: { + prototype: GPUExternalTexture; + new(): GPUExternalTexture; +}; + +/** + * The **`GPUInternalError`** interface of the WebGPU API describes an application error indicating that an operation failed for a system or implementation-specific reason, even when all validation requirements were satisfied. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError) + */ +interface GPUInternalError extends GPUError { +} + +declare var GPUInternalError: { + prototype: GPUInternalError; + new(message: string): GPUInternalError; +}; + +interface GPUObjectBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */ + label: string; +} + +/** + * The **`GPUOutOfMemoryError`** interface of the WebGPU API describes an out-of-memory (oom) error indicating that there was not enough free memory to complete the requested operation. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError) + */ +interface GPUOutOfMemoryError extends GPUError { +} + +declare var GPUOutOfMemoryError: { + prototype: GPUOutOfMemoryError; + new(message: string): GPUOutOfMemoryError; +}; + +interface GPUPipelineBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */ + getBindGroupLayout(index: number): GPUBindGroupLayout; +} + /** * The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure. This is the value received when a Promise returned by a GPUDevice.createComputePipelineAsync() or GPUDevice.createRenderPipelineAsync() call rejects. * Available only in secure contexts. @@ -3898,6 +4036,125 @@ declare var GPUPipelineError: { new(message: string, options: GPUPipelineErrorInit): GPUPipelineError; }; +/** + * The **`GPUPipelineLayout`** interface of the WebGPU API defines the GPUBindGroupLayouts used by a pipeline. GPUBindGroups used with the pipeline during command encoding must have compatible GPUBindGroupLayouts. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout) + */ +interface GPUPipelineLayout extends GPUObjectBase { +} + +declare var GPUPipelineLayout: { + prototype: GPUPipelineLayout; + new(): GPUPipelineLayout; +}; + +/** + * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle) + */ +interface GPURenderBundle extends GPUObjectBase { +} + +declare var GPURenderBundle: { + prototype: GPURenderBundle; + new(): GPURenderBundle; +}; + +/** + * The **`GPURenderPipeline`** interface of the WebGPU API represents a pipeline that controls the vertex and fragment shader stages and can be used in a GPURenderPassEncoder or GPURenderBundleEncoder. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline) + */ +interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase { +} + +declare var GPURenderPipeline: { + prototype: GPURenderPipeline; + new(): GPURenderPipeline; +}; + +/** + * The **`GPUSampler`** interface of the WebGPU API represents an object that can control how shaders transform and filter texture resource data. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler) + */ +interface GPUSampler extends GPUObjectBase { +} + +declare var GPUSampler: { + prototype: GPUSampler; + new(): GPUSampler; +}; + +/** + * The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures) + */ +interface GPUSupportedFeatures { + forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void; +} + +declare var GPUSupportedFeatures: { + prototype: GPUSupportedFeatures; + new(): GPUSupportedFeatures; +}; + +/** + * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView) + */ +interface GPUTextureView extends GPUObjectBase { +} + +declare var GPUTextureView: { + prototype: GPUTextureView; + new(): GPUTextureView; +}; + +/** + * The **`GPUUncapturedErrorEvent`** interface of the WebGPU API is the event object type for the GPUDevice uncapturederror event, used for telemetry and to report unexpected errors. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent) + */ +interface GPUUncapturedErrorEvent extends Event { + /** + * The **`error`** read-only property of the GPUUncapturedErrorEvent interface is a GPUError object instance providing access to the details of the error. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error) + */ + readonly error: GPUError; +} + +declare var GPUUncapturedErrorEvent: { + prototype: GPUUncapturedErrorEvent; + new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent; +}; + +/** + * The **`GPUValidationError`** interface of the WebGPU API describes an application error indicating that an operation did not pass the WebGPU API's validation constraints. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError) + */ +interface GPUValidationError extends GPUError { +} + +declare var GPUValidationError: { + prototype: GPUValidationError; + new(message: string): GPUValidationError; +}; + interface GenericTransformStream { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */ readonly readable: ReadableStream; @@ -7772,6 +8029,21 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +/** + * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures) + */ +interface WGSLLanguageFeatures { + forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void; +} + +declare var WGSLLanguageFeatures: { + prototype: WGSLLanguageFeatures; + new(): WGSLLanguageFeatures; +}; + /** * The **`WebGL2RenderingContext`** interface provides the OpenGL ES 3.0 rendering context for the drawing surface of an HTML element. * @@ -11483,6 +11755,7 @@ type FileSystemHandleKind = "directory" | "file"; type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; +type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; diff --git a/baselines/ts5.9/sharedworker.iterable.generated.d.ts b/baselines/ts5.9/sharedworker.iterable.generated.d.ts index 543a590e3..8f69c531f 100644 --- a/baselines/ts5.9/sharedworker.iterable.generated.d.ts +++ b/baselines/ts5.9/sharedworker.iterable.generated.d.ts @@ -67,6 +67,9 @@ interface FormData { values(): FormDataIterator; } +interface GPUSupportedFeatures extends ReadonlySet { +} + interface HeadersIterator extends IteratorObject { [Symbol.iterator](): HeadersIterator; } @@ -197,6 +200,9 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable, offsetsOffset: number, drawcount: GLsizei): void; } +interface WGSLLanguageFeatures extends ReadonlySet { +} + interface WebGL2RenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable, srcOffset?: number): void; diff --git a/baselines/ts5.9/webworker.generated.d.ts b/baselines/ts5.9/webworker.generated.d.ts index f32d838bf..0e0024865 100644 --- a/baselines/ts5.9/webworker.generated.d.ts +++ b/baselines/ts5.9/webworker.generated.d.ts @@ -363,6 +363,10 @@ interface GPUPipelineErrorInit { reason: GPUPipelineErrorReason; } +interface GPUUncapturedErrorEventInit extends EventInit { + error: GPUError; +} + interface GetNotificationOptions { tag?: string; } @@ -4877,6 +4881,88 @@ declare var FormData: { new(): FormData; }; +/** + * The **`GPUBindGroup`** interface of the WebGPU API is based on a GPUBindGroupLayout and defines a set of resources to be bound together in a group and how those resources are used in shader stages. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup) + */ +interface GPUBindGroup extends GPUObjectBase { +} + +declare var GPUBindGroup: { + prototype: GPUBindGroup; + new(): GPUBindGroup; +}; + +/** + * The **`GPUBindGroupLayout`** interface of the WebGPU API defines the structure and purpose of related GPU resources such as buffers that will be used in a pipeline, and is used as a template when creating GPUBindGroups. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroupLayout) + */ +interface GPUBindGroupLayout extends GPUObjectBase { +} + +declare var GPUBindGroupLayout: { + prototype: GPUBindGroupLayout; + new(): GPUBindGroupLayout; +}; + +/** + * The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer) + */ +interface GPUCommandBuffer extends GPUObjectBase { +} + +declare var GPUCommandBuffer: { + prototype: GPUCommandBuffer; + new(): GPUCommandBuffer; +}; + +/** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline) + */ +interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase { +} + +declare var GPUComputePipeline: { + prototype: GPUComputePipeline; + new(): GPUComputePipeline; +}; + +/** + * The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo) + */ +interface GPUDeviceLostInfo { + /** + * The **`message`** read-only property of the GPUDeviceLostInfo interface provides a human-readable message that explains why the device was lost. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message) + */ + readonly message: string; + /** + * The **`reason`** read-only property of the GPUDeviceLostInfo interface defines the reason the device was lost in a machine-readable way. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason) + */ + readonly reason: GPUDeviceLostReason; +} + +declare var GPUDeviceLostInfo: { + prototype: GPUDeviceLostInfo; + new(): GPUDeviceLostInfo; +}; + /** * The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the uncapturederror event. * Available only in secure contexts. @@ -4897,6 +4983,58 @@ declare var GPUError: { new(): GPUError; }; +/** + * The **`GPUExternalTexture`** interface of the WebGPU API represents a wrapper object containing an HTMLVideoElement snapshot that can be used as a texture in GPU rendering operations. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture) + */ +interface GPUExternalTexture extends GPUObjectBase { +} + +declare var GPUExternalTexture: { + prototype: GPUExternalTexture; + new(): GPUExternalTexture; +}; + +/** + * The **`GPUInternalError`** interface of the WebGPU API describes an application error indicating that an operation failed for a system or implementation-specific reason, even when all validation requirements were satisfied. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError) + */ +interface GPUInternalError extends GPUError { +} + +declare var GPUInternalError: { + prototype: GPUInternalError; + new(message: string): GPUInternalError; +}; + +interface GPUObjectBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */ + label: string; +} + +/** + * The **`GPUOutOfMemoryError`** interface of the WebGPU API describes an out-of-memory (oom) error indicating that there was not enough free memory to complete the requested operation. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError) + */ +interface GPUOutOfMemoryError extends GPUError { +} + +declare var GPUOutOfMemoryError: { + prototype: GPUOutOfMemoryError; + new(message: string): GPUOutOfMemoryError; +}; + +interface GPUPipelineBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */ + getBindGroupLayout(index: number): GPUBindGroupLayout; +} + /** * The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure. This is the value received when a Promise returned by a GPUDevice.createComputePipelineAsync() or GPUDevice.createRenderPipelineAsync() call rejects. * Available only in secure contexts. @@ -4917,6 +5055,125 @@ declare var GPUPipelineError: { new(message: string, options: GPUPipelineErrorInit): GPUPipelineError; }; +/** + * The **`GPUPipelineLayout`** interface of the WebGPU API defines the GPUBindGroupLayouts used by a pipeline. GPUBindGroups used with the pipeline during command encoding must have compatible GPUBindGroupLayouts. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout) + */ +interface GPUPipelineLayout extends GPUObjectBase { +} + +declare var GPUPipelineLayout: { + prototype: GPUPipelineLayout; + new(): GPUPipelineLayout; +}; + +/** + * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle) + */ +interface GPURenderBundle extends GPUObjectBase { +} + +declare var GPURenderBundle: { + prototype: GPURenderBundle; + new(): GPURenderBundle; +}; + +/** + * The **`GPURenderPipeline`** interface of the WebGPU API represents a pipeline that controls the vertex and fragment shader stages and can be used in a GPURenderPassEncoder or GPURenderBundleEncoder. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline) + */ +interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase { +} + +declare var GPURenderPipeline: { + prototype: GPURenderPipeline; + new(): GPURenderPipeline; +}; + +/** + * The **`GPUSampler`** interface of the WebGPU API represents an object that can control how shaders transform and filter texture resource data. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler) + */ +interface GPUSampler extends GPUObjectBase { +} + +declare var GPUSampler: { + prototype: GPUSampler; + new(): GPUSampler; +}; + +/** + * The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures) + */ +interface GPUSupportedFeatures { + forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void; +} + +declare var GPUSupportedFeatures: { + prototype: GPUSupportedFeatures; + new(): GPUSupportedFeatures; +}; + +/** + * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView) + */ +interface GPUTextureView extends GPUObjectBase { +} + +declare var GPUTextureView: { + prototype: GPUTextureView; + new(): GPUTextureView; +}; + +/** + * The **`GPUUncapturedErrorEvent`** interface of the WebGPU API is the event object type for the GPUDevice uncapturederror event, used for telemetry and to report unexpected errors. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent) + */ +interface GPUUncapturedErrorEvent extends Event { + /** + * The **`error`** read-only property of the GPUUncapturedErrorEvent interface is a GPUError object instance providing access to the details of the error. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error) + */ + readonly error: GPUError; +} + +declare var GPUUncapturedErrorEvent: { + prototype: GPUUncapturedErrorEvent; + new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent; +}; + +/** + * The **`GPUValidationError`** interface of the WebGPU API describes an application error indicating that an operation did not pass the WebGPU API's validation constraints. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError) + */ +interface GPUValidationError extends GPUError { +} + +declare var GPUValidationError: { + prototype: GPUValidationError; + new(message: string): GPUValidationError; +}; + interface GenericTransformStream { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */ readonly readable: ReadableStream; @@ -9689,6 +9946,21 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +/** + * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures) + */ +interface WGSLLanguageFeatures { + forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void; +} + +declare var WGSLLanguageFeatures: { + prototype: WGSLLanguageFeatures; + new(): WGSLLanguageFeatures; +}; + /** * The **`WebGL2RenderingContext`** interface provides the OpenGL ES 3.0 rendering context for the drawing surface of an HTML element. * @@ -13490,6 +13762,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 GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software"; diff --git a/baselines/ts5.9/webworker.iterable.generated.d.ts b/baselines/ts5.9/webworker.iterable.generated.d.ts index 128931f6e..0d086c8cd 100644 --- a/baselines/ts5.9/webworker.iterable.generated.d.ts +++ b/baselines/ts5.9/webworker.iterable.generated.d.ts @@ -82,6 +82,9 @@ interface FormData { values(): FormDataIterator; } +interface GPUSupportedFeatures extends ReadonlySet { +} + interface HeadersIterator extends IteratorObject { [Symbol.iterator](): HeadersIterator; } @@ -216,6 +219,9 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable, offsetsOffset: number, drawcount: GLsizei): void; } +interface WGSLLanguageFeatures extends ReadonlySet { +} + interface WebGL2RenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable, srcOffset?: number): void; diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index d250f765e..050de5ea2 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -366,6 +366,10 @@ interface GPUPipelineErrorInit { reason: GPUPipelineErrorReason; } +interface GPUUncapturedErrorEventInit extends EventInit { + error: GPUError; +} + interface GetNotificationOptions { tag?: string; } @@ -4880,6 +4884,88 @@ declare var FormData: { new(): FormData; }; +/** + * The **`GPUBindGroup`** interface of the WebGPU API is based on a GPUBindGroupLayout and defines a set of resources to be bound together in a group and how those resources are used in shader stages. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup) + */ +interface GPUBindGroup extends GPUObjectBase { +} + +declare var GPUBindGroup: { + prototype: GPUBindGroup; + new(): GPUBindGroup; +}; + +/** + * The **`GPUBindGroupLayout`** interface of the WebGPU API defines the structure and purpose of related GPU resources such as buffers that will be used in a pipeline, and is used as a template when creating GPUBindGroups. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroupLayout) + */ +interface GPUBindGroupLayout extends GPUObjectBase { +} + +declare var GPUBindGroupLayout: { + prototype: GPUBindGroupLayout; + new(): GPUBindGroupLayout; +}; + +/** + * The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer) + */ +interface GPUCommandBuffer extends GPUObjectBase { +} + +declare var GPUCommandBuffer: { + prototype: GPUCommandBuffer; + new(): GPUCommandBuffer; +}; + +/** + * 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. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline) + */ +interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase { +} + +declare var GPUComputePipeline: { + prototype: GPUComputePipeline; + new(): GPUComputePipeline; +}; + +/** + * The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo) + */ +interface GPUDeviceLostInfo { + /** + * The **`message`** read-only property of the GPUDeviceLostInfo interface provides a human-readable message that explains why the device was lost. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message) + */ + readonly message: string; + /** + * The **`reason`** read-only property of the GPUDeviceLostInfo interface defines the reason the device was lost in a machine-readable way. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason) + */ + readonly reason: GPUDeviceLostReason; +} + +declare var GPUDeviceLostInfo: { + prototype: GPUDeviceLostInfo; + new(): GPUDeviceLostInfo; +}; + /** * The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the uncapturederror event. * Available only in secure contexts. @@ -4900,6 +4986,58 @@ declare var GPUError: { new(): GPUError; }; +/** + * The **`GPUExternalTexture`** interface of the WebGPU API represents a wrapper object containing an HTMLVideoElement snapshot that can be used as a texture in GPU rendering operations. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture) + */ +interface GPUExternalTexture extends GPUObjectBase { +} + +declare var GPUExternalTexture: { + prototype: GPUExternalTexture; + new(): GPUExternalTexture; +}; + +/** + * The **`GPUInternalError`** interface of the WebGPU API describes an application error indicating that an operation failed for a system or implementation-specific reason, even when all validation requirements were satisfied. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError) + */ +interface GPUInternalError extends GPUError { +} + +declare var GPUInternalError: { + prototype: GPUInternalError; + new(message: string): GPUInternalError; +}; + +interface GPUObjectBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */ + label: string; +} + +/** + * The **`GPUOutOfMemoryError`** interface of the WebGPU API describes an out-of-memory (oom) error indicating that there was not enough free memory to complete the requested operation. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError) + */ +interface GPUOutOfMemoryError extends GPUError { +} + +declare var GPUOutOfMemoryError: { + prototype: GPUOutOfMemoryError; + new(message: string): GPUOutOfMemoryError; +}; + +interface GPUPipelineBase { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */ + getBindGroupLayout(index: number): GPUBindGroupLayout; +} + /** * The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure. This is the value received when a Promise returned by a GPUDevice.createComputePipelineAsync() or GPUDevice.createRenderPipelineAsync() call rejects. * Available only in secure contexts. @@ -4920,6 +5058,125 @@ declare var GPUPipelineError: { new(message: string, options: GPUPipelineErrorInit): GPUPipelineError; }; +/** + * The **`GPUPipelineLayout`** interface of the WebGPU API defines the GPUBindGroupLayouts used by a pipeline. GPUBindGroups used with the pipeline during command encoding must have compatible GPUBindGroupLayouts. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout) + */ +interface GPUPipelineLayout extends GPUObjectBase { +} + +declare var GPUPipelineLayout: { + prototype: GPUPipelineLayout; + new(): GPUPipelineLayout; +}; + +/** + * The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle) + */ +interface GPURenderBundle extends GPUObjectBase { +} + +declare var GPURenderBundle: { + prototype: GPURenderBundle; + new(): GPURenderBundle; +}; + +/** + * The **`GPURenderPipeline`** interface of the WebGPU API represents a pipeline that controls the vertex and fragment shader stages and can be used in a GPURenderPassEncoder or GPURenderBundleEncoder. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline) + */ +interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase { +} + +declare var GPURenderPipeline: { + prototype: GPURenderPipeline; + new(): GPURenderPipeline; +}; + +/** + * The **`GPUSampler`** interface of the WebGPU API represents an object that can control how shaders transform and filter texture resource data. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler) + */ +interface GPUSampler extends GPUObjectBase { +} + +declare var GPUSampler: { + prototype: GPUSampler; + new(): GPUSampler; +}; + +/** + * The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures) + */ +interface GPUSupportedFeatures { + forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void; +} + +declare var GPUSupportedFeatures: { + prototype: GPUSupportedFeatures; + new(): GPUSupportedFeatures; +}; + +/** + * The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView) + */ +interface GPUTextureView extends GPUObjectBase { +} + +declare var GPUTextureView: { + prototype: GPUTextureView; + new(): GPUTextureView; +}; + +/** + * The **`GPUUncapturedErrorEvent`** interface of the WebGPU API is the event object type for the GPUDevice uncapturederror event, used for telemetry and to report unexpected errors. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent) + */ +interface GPUUncapturedErrorEvent extends Event { + /** + * The **`error`** read-only property of the GPUUncapturedErrorEvent interface is a GPUError object instance providing access to the details of the error. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error) + */ + readonly error: GPUError; +} + +declare var GPUUncapturedErrorEvent: { + prototype: GPUUncapturedErrorEvent; + new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent; +}; + +/** + * The **`GPUValidationError`** interface of the WebGPU API describes an application error indicating that an operation did not pass the WebGPU API's validation constraints. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError) + */ +interface GPUValidationError extends GPUError { +} + +declare var GPUValidationError: { + prototype: GPUValidationError; + new(message: string): GPUValidationError; +}; + interface GenericTransformStream { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */ readonly readable: ReadableStream; @@ -9692,6 +9949,21 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +/** + * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures) + */ +interface WGSLLanguageFeatures { + forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void; +} + +declare var WGSLLanguageFeatures: { + prototype: WGSLLanguageFeatures; + new(): WGSLLanguageFeatures; +}; + /** * The **`WebGL2RenderingContext`** interface provides the OpenGL ES 3.0 rendering context for the drawing surface of an HTML element. * @@ -13493,6 +13765,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 GPUDeviceLostReason = "destroyed" | "unknown"; type GPUPipelineErrorReason = "internal" | "validation"; type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software"; @@ -13635,6 +13908,9 @@ interface FormData { values(): FormDataIterator; } +interface GPUSupportedFeatures extends ReadonlySet { +} + interface HeadersIterator extends IteratorObject { [Symbol.iterator](): HeadersIterator; } @@ -13769,6 +14045,9 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +interface WGSLLanguageFeatures extends ReadonlySet { +} + interface WebGL2RenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: GLfloat[], srcOffset?: number): void; diff --git a/inputfiles/overridingTypes.jsonc b/inputfiles/overridingTypes.jsonc index 207aeec45..6f00f30ff 100644 --- a/inputfiles/overridingTypes.jsonc +++ b/inputfiles/overridingTypes.jsonc @@ -2966,21 +2966,12 @@ "GPUAdapterInfo": { "exposed": "" }, - "GPUBindGroup": { - "exposed": "" - }, - "GPUBindGroupLayout": { - "exposed": "" - }, "GPUBuffer": { "exposed": "" }, "GPUCanvasContext": { "exposed": "" }, - "GPUCommandBuffer": { - "exposed": "" - }, "GPUCommandEncoder": { "exposed": "" }, @@ -2993,69 +2984,30 @@ "GPUComputePassEncoder": { "exposed": "" }, - "GPUComputePipeline": { - "exposed": "" - }, "GPUDevice": { "exposed": "" }, - "GPUDeviceLostInfo": { - "exposed": "" - }, - "GPUExternalTexture": { - "exposed": "" - }, - "GPUInternalError": { - "exposed": "" - }, - "GPUOutOfMemoryError": { - "exposed": "" - }, - "GPUPipelineLayout": { - "exposed": "" - }, "GPUQuerySet": { "exposed": "" }, "GPUQueue": { "exposed": "" }, - "GPURenderBundle": { - "exposed": "" - }, "GPURenderBundleEncoder": { "exposed": "" }, "GPURenderPassEncoder": { "exposed": "" }, - "GPURenderPipeline": { - "exposed": "" - }, - "GPUSampler": { - "exposed": "" - }, "GPUShaderModule": { "exposed": "" }, - "GPUSupportedFeatures": { - "exposed": "" - }, "GPUSupportedLimits": { "exposed": "" }, "GPUTexture": { "exposed": "" }, - "GPUTextureView": { - "exposed": "" - }, - "GPUUncapturedErrorEvent": { - "exposed": "" - }, - "GPUValidationError": { - "exposed": "" - }, "TrustedHTML": { "exposed": "" }, @@ -3071,9 +3023,6 @@ "TrustedTypePolicyFactory": { "exposed": "" }, - "WGSLLanguageFeatures": { - "exposed": "" - } } }, "dictionaries": {