From 4451c664eeaf5077f7a3e4617fbdf226777f7b8d Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Sun, 15 Feb 2026 13:05:09 +0100 Subject: [PATCH] Add GPUAdapter --- baselines/dom.generated.d.ts | 48 ++++++++++++++++++++ baselines/serviceworker.generated.d.ts | 48 ++++++++++++++++++++ baselines/sharedworker.generated.d.ts | 48 ++++++++++++++++++++ baselines/ts5.5/dom.generated.d.ts | 48 ++++++++++++++++++++ baselines/ts5.5/serviceworker.generated.d.ts | 48 ++++++++++++++++++++ baselines/ts5.5/sharedworker.generated.d.ts | 48 ++++++++++++++++++++ baselines/ts5.5/webworker.generated.d.ts | 48 ++++++++++++++++++++ baselines/ts5.6/dom.generated.d.ts | 48 ++++++++++++++++++++ baselines/ts5.6/serviceworker.generated.d.ts | 48 ++++++++++++++++++++ baselines/ts5.6/sharedworker.generated.d.ts | 48 ++++++++++++++++++++ baselines/ts5.6/webworker.generated.d.ts | 48 ++++++++++++++++++++ baselines/ts5.9/dom.generated.d.ts | 48 ++++++++++++++++++++ baselines/ts5.9/serviceworker.generated.d.ts | 48 ++++++++++++++++++++ baselines/ts5.9/sharedworker.generated.d.ts | 48 ++++++++++++++++++++ baselines/ts5.9/webworker.generated.d.ts | 48 ++++++++++++++++++++ baselines/webworker.generated.d.ts | 48 ++++++++++++++++++++ inputfiles/overridingTypes.jsonc | 3 -- inputfiles/patches/webgpu.kdl | 7 +-- package-lock.json | 18 ++------ 19 files changed, 774 insertions(+), 22 deletions(-) diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index c215baf4d..a70dc947a 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -929,6 +929,12 @@ interface GPUDepthStencilState { stencilWriteMask?: GPUStencilValue; } +interface GPUDeviceDescriptor extends GPUObjectDescriptorBase { + defaultQueue?: GPUQueueDescriptor; + requiredFeatures?: GPUFeatureName[]; + requiredLimits?: Record; +} + interface GPUExtent3DDict { depthOrArrayLayers?: GPUIntegerCoordinate; height?: GPUIntegerCoordinate; @@ -999,6 +1005,9 @@ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase { type: GPUQueryType; } +interface GPUQueueDescriptor extends GPUObjectDescriptorBase { +} + interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase { } @@ -15083,6 +15092,44 @@ declare var FragmentDirective: { new(): FragmentDirective; }; +/** + * The **`GPUAdapter`** interface of the WebGPU API represents a GPU adapter. From this you can request a GPUDevice, adapter info, features, and limits. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter) + */ +interface GPUAdapter { + /** + * The **`features`** read-only property of the GPUAdapter interface returns a GPUSupportedFeatures object that describes additional functionality supported by the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/features) + */ + readonly features: GPUSupportedFeatures; + /** + * The **`info`** read-only property of the GPUAdapter interface returns a GPUAdapterInfo object containing identifying information about the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/info) + */ + readonly info: GPUAdapterInfo; + /** + * The **`limits`** read-only property of the GPUAdapter interface returns a GPUSupportedLimits object that describes the limits supported by the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/limits) + */ + readonly limits: GPUSupportedLimits; + /** + * The **`requestDevice()`** method of the GPUAdapter interface returns a Promise that fulfills with a GPUDevice object, which is the primary interface for communicating with the GPU. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/requestDevice) + */ + requestDevice(descriptor?: GPUDeviceDescriptor): Promise; +} + +declare var GPUAdapter: { + prototype: GPUAdapter; + new(): GPUAdapter; +}; + /** * The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter. * Available only in secure contexts. @@ -44205,6 +44252,7 @@ type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; +type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query"; type GPUFilterMode = "linear" | "nearest"; type GPUFrontFace = "ccw" | "cw"; type GPUIndexFormat = "uint16" | "uint32"; diff --git a/baselines/serviceworker.generated.d.ts b/baselines/serviceworker.generated.d.ts index f43822228..36c786179 100644 --- a/baselines/serviceworker.generated.d.ts +++ b/baselines/serviceworker.generated.d.ts @@ -396,6 +396,12 @@ interface GPUDepthStencilState { stencilWriteMask?: GPUStencilValue; } +interface GPUDeviceDescriptor extends GPUObjectDescriptorBase { + defaultQueue?: GPUQueueDescriptor; + requiredFeatures?: GPUFeatureName[]; + requiredLimits?: Record; +} + interface GPUExtent3DDict { depthOrArrayLayers?: GPUIntegerCoordinate; height?: GPUIntegerCoordinate; @@ -465,6 +471,9 @@ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase { type: GPUQueryType; } +interface GPUQueueDescriptor extends GPUObjectDescriptorBase { +} + interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase { } @@ -4522,6 +4531,44 @@ declare var FormData: { new(): FormData; }; +/** + * The **`GPUAdapter`** interface of the WebGPU API represents a GPU adapter. From this you can request a GPUDevice, adapter info, features, and limits. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter) + */ +interface GPUAdapter { + /** + * The **`features`** read-only property of the GPUAdapter interface returns a GPUSupportedFeatures object that describes additional functionality supported by the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/features) + */ + readonly features: GPUSupportedFeatures; + /** + * The **`info`** read-only property of the GPUAdapter interface returns a GPUAdapterInfo object containing identifying information about the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/info) + */ + readonly info: GPUAdapterInfo; + /** + * The **`limits`** read-only property of the GPUAdapter interface returns a GPUSupportedLimits object that describes the limits supported by the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/limits) + */ + readonly limits: GPUSupportedLimits; + /** + * The **`requestDevice()`** method of the GPUAdapter interface returns a Promise that fulfills with a GPUDevice object, which is the primary interface for communicating with the GPU. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/requestDevice) + */ + requestDevice(descriptor?: GPUDeviceDescriptor): Promise; +} + +declare var GPUAdapter: { + prototype: GPUAdapter; + new(): GPUAdapter; +}; + /** * The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter. * Available only in secure contexts. @@ -13314,6 +13361,7 @@ type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; +type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query"; type GPUFilterMode = "linear" | "nearest"; type GPUFrontFace = "ccw" | "cw"; type GPUIndexFormat = "uint16" | "uint32"; diff --git a/baselines/sharedworker.generated.d.ts b/baselines/sharedworker.generated.d.ts index ce1126334..b8b457f9b 100644 --- a/baselines/sharedworker.generated.d.ts +++ b/baselines/sharedworker.generated.d.ts @@ -340,6 +340,12 @@ interface GPUDepthStencilState { stencilWriteMask?: GPUStencilValue; } +interface GPUDeviceDescriptor extends GPUObjectDescriptorBase { + defaultQueue?: GPUQueueDescriptor; + requiredFeatures?: GPUFeatureName[]; + requiredLimits?: Record; +} + interface GPUExtent3DDict { depthOrArrayLayers?: GPUIntegerCoordinate; height?: GPUIntegerCoordinate; @@ -409,6 +415,9 @@ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase { type: GPUQueryType; } +interface GPUQueueDescriptor extends GPUObjectDescriptorBase { +} + interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase { } @@ -4205,6 +4214,44 @@ declare var FormData: { new(): FormData; }; +/** + * The **`GPUAdapter`** interface of the WebGPU API represents a GPU adapter. From this you can request a GPUDevice, adapter info, features, and limits. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter) + */ +interface GPUAdapter { + /** + * The **`features`** read-only property of the GPUAdapter interface returns a GPUSupportedFeatures object that describes additional functionality supported by the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/features) + */ + readonly features: GPUSupportedFeatures; + /** + * The **`info`** read-only property of the GPUAdapter interface returns a GPUAdapterInfo object containing identifying information about the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/info) + */ + readonly info: GPUAdapterInfo; + /** + * The **`limits`** read-only property of the GPUAdapter interface returns a GPUSupportedLimits object that describes the limits supported by the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/limits) + */ + readonly limits: GPUSupportedLimits; + /** + * The **`requestDevice()`** method of the GPUAdapter interface returns a Promise that fulfills with a GPUDevice object, which is the primary interface for communicating with the GPU. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/requestDevice) + */ + requestDevice(descriptor?: GPUDeviceDescriptor): Promise; +} + +declare var GPUAdapter: { + prototype: GPUAdapter; + new(): GPUAdapter; +}; + /** * The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter. * Available only in secure contexts. @@ -12999,6 +13046,7 @@ type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; +type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query"; type GPUFilterMode = "linear" | "nearest"; type GPUFrontFace = "ccw" | "cw"; type GPUIndexFormat = "uint16" | "uint32"; diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index 7de3028a4..9e783359e 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -926,6 +926,12 @@ interface GPUDepthStencilState { stencilWriteMask?: GPUStencilValue; } +interface GPUDeviceDescriptor extends GPUObjectDescriptorBase { + defaultQueue?: GPUQueueDescriptor; + requiredFeatures?: GPUFeatureName[]; + requiredLimits?: Record; +} + interface GPUExtent3DDict { depthOrArrayLayers?: GPUIntegerCoordinate; height?: GPUIntegerCoordinate; @@ -996,6 +1002,9 @@ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase { type: GPUQueryType; } +interface GPUQueueDescriptor extends GPUObjectDescriptorBase { +} + interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase { } @@ -15069,6 +15078,44 @@ declare var FragmentDirective: { new(): FragmentDirective; }; +/** + * The **`GPUAdapter`** interface of the WebGPU API represents a GPU adapter. From this you can request a GPUDevice, adapter info, features, and limits. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter) + */ +interface GPUAdapter { + /** + * The **`features`** read-only property of the GPUAdapter interface returns a GPUSupportedFeatures object that describes additional functionality supported by the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/features) + */ + readonly features: GPUSupportedFeatures; + /** + * The **`info`** read-only property of the GPUAdapter interface returns a GPUAdapterInfo object containing identifying information about the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/info) + */ + readonly info: GPUAdapterInfo; + /** + * The **`limits`** read-only property of the GPUAdapter interface returns a GPUSupportedLimits object that describes the limits supported by the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/limits) + */ + readonly limits: GPUSupportedLimits; + /** + * The **`requestDevice()`** method of the GPUAdapter interface returns a Promise that fulfills with a GPUDevice object, which is the primary interface for communicating with the GPU. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/requestDevice) + */ + requestDevice(descriptor?: GPUDeviceDescriptor): Promise; +} + +declare var GPUAdapter: { + prototype: GPUAdapter; + new(): GPUAdapter; +}; + /** * The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter. * Available only in secure contexts. @@ -44179,6 +44226,7 @@ type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; +type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query"; type GPUFilterMode = "linear" | "nearest"; type GPUFrontFace = "ccw" | "cw"; type GPUIndexFormat = "uint16" | "uint32"; diff --git a/baselines/ts5.5/serviceworker.generated.d.ts b/baselines/ts5.5/serviceworker.generated.d.ts index 5854f575c..5074ec31d 100644 --- a/baselines/ts5.5/serviceworker.generated.d.ts +++ b/baselines/ts5.5/serviceworker.generated.d.ts @@ -393,6 +393,12 @@ interface GPUDepthStencilState { stencilWriteMask?: GPUStencilValue; } +interface GPUDeviceDescriptor extends GPUObjectDescriptorBase { + defaultQueue?: GPUQueueDescriptor; + requiredFeatures?: GPUFeatureName[]; + requiredLimits?: Record; +} + interface GPUExtent3DDict { depthOrArrayLayers?: GPUIntegerCoordinate; height?: GPUIntegerCoordinate; @@ -462,6 +468,9 @@ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase { type: GPUQueryType; } +interface GPUQueueDescriptor extends GPUObjectDescriptorBase { +} + interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase { } @@ -4519,6 +4528,44 @@ declare var FormData: { new(): FormData; }; +/** + * The **`GPUAdapter`** interface of the WebGPU API represents a GPU adapter. From this you can request a GPUDevice, adapter info, features, and limits. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter) + */ +interface GPUAdapter { + /** + * The **`features`** read-only property of the GPUAdapter interface returns a GPUSupportedFeatures object that describes additional functionality supported by the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/features) + */ + readonly features: GPUSupportedFeatures; + /** + * The **`info`** read-only property of the GPUAdapter interface returns a GPUAdapterInfo object containing identifying information about the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/info) + */ + readonly info: GPUAdapterInfo; + /** + * The **`limits`** read-only property of the GPUAdapter interface returns a GPUSupportedLimits object that describes the limits supported by the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/limits) + */ + readonly limits: GPUSupportedLimits; + /** + * The **`requestDevice()`** method of the GPUAdapter interface returns a Promise that fulfills with a GPUDevice object, which is the primary interface for communicating with the GPU. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/requestDevice) + */ + requestDevice(descriptor?: GPUDeviceDescriptor): Promise; +} + +declare var GPUAdapter: { + prototype: GPUAdapter; + new(): GPUAdapter; +}; + /** * The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter. * Available only in secure contexts. @@ -13311,6 +13358,7 @@ type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; +type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query"; type GPUFilterMode = "linear" | "nearest"; type GPUFrontFace = "ccw" | "cw"; type GPUIndexFormat = "uint16" | "uint32"; diff --git a/baselines/ts5.5/sharedworker.generated.d.ts b/baselines/ts5.5/sharedworker.generated.d.ts index f684639d9..f9e328e46 100644 --- a/baselines/ts5.5/sharedworker.generated.d.ts +++ b/baselines/ts5.5/sharedworker.generated.d.ts @@ -337,6 +337,12 @@ interface GPUDepthStencilState { stencilWriteMask?: GPUStencilValue; } +interface GPUDeviceDescriptor extends GPUObjectDescriptorBase { + defaultQueue?: GPUQueueDescriptor; + requiredFeatures?: GPUFeatureName[]; + requiredLimits?: Record; +} + interface GPUExtent3DDict { depthOrArrayLayers?: GPUIntegerCoordinate; height?: GPUIntegerCoordinate; @@ -406,6 +412,9 @@ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase { type: GPUQueryType; } +interface GPUQueueDescriptor extends GPUObjectDescriptorBase { +} + interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase { } @@ -4202,6 +4211,44 @@ declare var FormData: { new(): FormData; }; +/** + * The **`GPUAdapter`** interface of the WebGPU API represents a GPU adapter. From this you can request a GPUDevice, adapter info, features, and limits. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter) + */ +interface GPUAdapter { + /** + * The **`features`** read-only property of the GPUAdapter interface returns a GPUSupportedFeatures object that describes additional functionality supported by the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/features) + */ + readonly features: GPUSupportedFeatures; + /** + * The **`info`** read-only property of the GPUAdapter interface returns a GPUAdapterInfo object containing identifying information about the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/info) + */ + readonly info: GPUAdapterInfo; + /** + * The **`limits`** read-only property of the GPUAdapter interface returns a GPUSupportedLimits object that describes the limits supported by the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/limits) + */ + readonly limits: GPUSupportedLimits; + /** + * The **`requestDevice()`** method of the GPUAdapter interface returns a Promise that fulfills with a GPUDevice object, which is the primary interface for communicating with the GPU. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/requestDevice) + */ + requestDevice(descriptor?: GPUDeviceDescriptor): Promise; +} + +declare var GPUAdapter: { + prototype: GPUAdapter; + new(): GPUAdapter; +}; + /** * The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter. * Available only in secure contexts. @@ -12996,6 +13043,7 @@ type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; +type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query"; type GPUFilterMode = "linear" | "nearest"; type GPUFrontFace = "ccw" | "cw"; type GPUIndexFormat = "uint16" | "uint32"; diff --git a/baselines/ts5.5/webworker.generated.d.ts b/baselines/ts5.5/webworker.generated.d.ts index de0031f8b..732ed90f1 100644 --- a/baselines/ts5.5/webworker.generated.d.ts +++ b/baselines/ts5.5/webworker.generated.d.ts @@ -483,6 +483,12 @@ interface GPUDepthStencilState { stencilWriteMask?: GPUStencilValue; } +interface GPUDeviceDescriptor extends GPUObjectDescriptorBase { + defaultQueue?: GPUQueueDescriptor; + requiredFeatures?: GPUFeatureName[]; + requiredLimits?: Record; +} + interface GPUExtent3DDict { depthOrArrayLayers?: GPUIntegerCoordinate; height?: GPUIntegerCoordinate; @@ -553,6 +559,9 @@ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase { type: GPUQueryType; } +interface GPUQueueDescriptor extends GPUObjectDescriptorBase { +} + interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase { } @@ -5222,6 +5231,44 @@ declare var FormData: { new(): FormData; }; +/** + * The **`GPUAdapter`** interface of the WebGPU API represents a GPU adapter. From this you can request a GPUDevice, adapter info, features, and limits. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter) + */ +interface GPUAdapter { + /** + * The **`features`** read-only property of the GPUAdapter interface returns a GPUSupportedFeatures object that describes additional functionality supported by the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/features) + */ + readonly features: GPUSupportedFeatures; + /** + * The **`info`** read-only property of the GPUAdapter interface returns a GPUAdapterInfo object containing identifying information about the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/info) + */ + readonly info: GPUAdapterInfo; + /** + * The **`limits`** read-only property of the GPUAdapter interface returns a GPUSupportedLimits object that describes the limits supported by the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/limits) + */ + readonly limits: GPUSupportedLimits; + /** + * The **`requestDevice()`** method of the GPUAdapter interface returns a Promise that fulfills with a GPUDevice object, which is the primary interface for communicating with the GPU. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/requestDevice) + */ + requestDevice(descriptor?: GPUDeviceDescriptor): Promise; +} + +declare var GPUAdapter: { + prototype: GPUAdapter; + new(): GPUAdapter; +}; + /** * The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter. * Available only in secure contexts. @@ -14998,6 +15045,7 @@ type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; +type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query"; type GPUFilterMode = "linear" | "nearest"; type GPUFrontFace = "ccw" | "cw"; type GPUIndexFormat = "uint16" | "uint32"; diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index 5d2ce6c32..ebf538b0c 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -926,6 +926,12 @@ interface GPUDepthStencilState { stencilWriteMask?: GPUStencilValue; } +interface GPUDeviceDescriptor extends GPUObjectDescriptorBase { + defaultQueue?: GPUQueueDescriptor; + requiredFeatures?: GPUFeatureName[]; + requiredLimits?: Record; +} + interface GPUExtent3DDict { depthOrArrayLayers?: GPUIntegerCoordinate; height?: GPUIntegerCoordinate; @@ -996,6 +1002,9 @@ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase { type: GPUQueryType; } +interface GPUQueueDescriptor extends GPUObjectDescriptorBase { +} + interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase { } @@ -15080,6 +15089,44 @@ declare var FragmentDirective: { new(): FragmentDirective; }; +/** + * The **`GPUAdapter`** interface of the WebGPU API represents a GPU adapter. From this you can request a GPUDevice, adapter info, features, and limits. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter) + */ +interface GPUAdapter { + /** + * The **`features`** read-only property of the GPUAdapter interface returns a GPUSupportedFeatures object that describes additional functionality supported by the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/features) + */ + readonly features: GPUSupportedFeatures; + /** + * The **`info`** read-only property of the GPUAdapter interface returns a GPUAdapterInfo object containing identifying information about the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/info) + */ + readonly info: GPUAdapterInfo; + /** + * The **`limits`** read-only property of the GPUAdapter interface returns a GPUSupportedLimits object that describes the limits supported by the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/limits) + */ + readonly limits: GPUSupportedLimits; + /** + * The **`requestDevice()`** method of the GPUAdapter interface returns a Promise that fulfills with a GPUDevice object, which is the primary interface for communicating with the GPU. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/requestDevice) + */ + requestDevice(descriptor?: GPUDeviceDescriptor): Promise; +} + +declare var GPUAdapter: { + prototype: GPUAdapter; + new(): GPUAdapter; +}; + /** * The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter. * Available only in secure contexts. @@ -44202,6 +44249,7 @@ type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; +type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query"; type GPUFilterMode = "linear" | "nearest"; type GPUFrontFace = "ccw" | "cw"; type GPUIndexFormat = "uint16" | "uint32"; diff --git a/baselines/ts5.6/serviceworker.generated.d.ts b/baselines/ts5.6/serviceworker.generated.d.ts index 5854f575c..5074ec31d 100644 --- a/baselines/ts5.6/serviceworker.generated.d.ts +++ b/baselines/ts5.6/serviceworker.generated.d.ts @@ -393,6 +393,12 @@ interface GPUDepthStencilState { stencilWriteMask?: GPUStencilValue; } +interface GPUDeviceDescriptor extends GPUObjectDescriptorBase { + defaultQueue?: GPUQueueDescriptor; + requiredFeatures?: GPUFeatureName[]; + requiredLimits?: Record; +} + interface GPUExtent3DDict { depthOrArrayLayers?: GPUIntegerCoordinate; height?: GPUIntegerCoordinate; @@ -462,6 +468,9 @@ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase { type: GPUQueryType; } +interface GPUQueueDescriptor extends GPUObjectDescriptorBase { +} + interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase { } @@ -4519,6 +4528,44 @@ declare var FormData: { new(): FormData; }; +/** + * The **`GPUAdapter`** interface of the WebGPU API represents a GPU adapter. From this you can request a GPUDevice, adapter info, features, and limits. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter) + */ +interface GPUAdapter { + /** + * The **`features`** read-only property of the GPUAdapter interface returns a GPUSupportedFeatures object that describes additional functionality supported by the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/features) + */ + readonly features: GPUSupportedFeatures; + /** + * The **`info`** read-only property of the GPUAdapter interface returns a GPUAdapterInfo object containing identifying information about the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/info) + */ + readonly info: GPUAdapterInfo; + /** + * The **`limits`** read-only property of the GPUAdapter interface returns a GPUSupportedLimits object that describes the limits supported by the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/limits) + */ + readonly limits: GPUSupportedLimits; + /** + * The **`requestDevice()`** method of the GPUAdapter interface returns a Promise that fulfills with a GPUDevice object, which is the primary interface for communicating with the GPU. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/requestDevice) + */ + requestDevice(descriptor?: GPUDeviceDescriptor): Promise; +} + +declare var GPUAdapter: { + prototype: GPUAdapter; + new(): GPUAdapter; +}; + /** * The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter. * Available only in secure contexts. @@ -13311,6 +13358,7 @@ type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; +type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query"; type GPUFilterMode = "linear" | "nearest"; type GPUFrontFace = "ccw" | "cw"; type GPUIndexFormat = "uint16" | "uint32"; diff --git a/baselines/ts5.6/sharedworker.generated.d.ts b/baselines/ts5.6/sharedworker.generated.d.ts index f684639d9..f9e328e46 100644 --- a/baselines/ts5.6/sharedworker.generated.d.ts +++ b/baselines/ts5.6/sharedworker.generated.d.ts @@ -337,6 +337,12 @@ interface GPUDepthStencilState { stencilWriteMask?: GPUStencilValue; } +interface GPUDeviceDescriptor extends GPUObjectDescriptorBase { + defaultQueue?: GPUQueueDescriptor; + requiredFeatures?: GPUFeatureName[]; + requiredLimits?: Record; +} + interface GPUExtent3DDict { depthOrArrayLayers?: GPUIntegerCoordinate; height?: GPUIntegerCoordinate; @@ -406,6 +412,9 @@ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase { type: GPUQueryType; } +interface GPUQueueDescriptor extends GPUObjectDescriptorBase { +} + interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase { } @@ -4202,6 +4211,44 @@ declare var FormData: { new(): FormData; }; +/** + * The **`GPUAdapter`** interface of the WebGPU API represents a GPU adapter. From this you can request a GPUDevice, adapter info, features, and limits. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter) + */ +interface GPUAdapter { + /** + * The **`features`** read-only property of the GPUAdapter interface returns a GPUSupportedFeatures object that describes additional functionality supported by the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/features) + */ + readonly features: GPUSupportedFeatures; + /** + * The **`info`** read-only property of the GPUAdapter interface returns a GPUAdapterInfo object containing identifying information about the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/info) + */ + readonly info: GPUAdapterInfo; + /** + * The **`limits`** read-only property of the GPUAdapter interface returns a GPUSupportedLimits object that describes the limits supported by the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/limits) + */ + readonly limits: GPUSupportedLimits; + /** + * The **`requestDevice()`** method of the GPUAdapter interface returns a Promise that fulfills with a GPUDevice object, which is the primary interface for communicating with the GPU. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/requestDevice) + */ + requestDevice(descriptor?: GPUDeviceDescriptor): Promise; +} + +declare var GPUAdapter: { + prototype: GPUAdapter; + new(): GPUAdapter; +}; + /** * The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter. * Available only in secure contexts. @@ -12996,6 +13043,7 @@ type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; +type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query"; type GPUFilterMode = "linear" | "nearest"; type GPUFrontFace = "ccw" | "cw"; type GPUIndexFormat = "uint16" | "uint32"; diff --git a/baselines/ts5.6/webworker.generated.d.ts b/baselines/ts5.6/webworker.generated.d.ts index de0031f8b..732ed90f1 100644 --- a/baselines/ts5.6/webworker.generated.d.ts +++ b/baselines/ts5.6/webworker.generated.d.ts @@ -483,6 +483,12 @@ interface GPUDepthStencilState { stencilWriteMask?: GPUStencilValue; } +interface GPUDeviceDescriptor extends GPUObjectDescriptorBase { + defaultQueue?: GPUQueueDescriptor; + requiredFeatures?: GPUFeatureName[]; + requiredLimits?: Record; +} + interface GPUExtent3DDict { depthOrArrayLayers?: GPUIntegerCoordinate; height?: GPUIntegerCoordinate; @@ -553,6 +559,9 @@ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase { type: GPUQueryType; } +interface GPUQueueDescriptor extends GPUObjectDescriptorBase { +} + interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase { } @@ -5222,6 +5231,44 @@ declare var FormData: { new(): FormData; }; +/** + * The **`GPUAdapter`** interface of the WebGPU API represents a GPU adapter. From this you can request a GPUDevice, adapter info, features, and limits. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter) + */ +interface GPUAdapter { + /** + * The **`features`** read-only property of the GPUAdapter interface returns a GPUSupportedFeatures object that describes additional functionality supported by the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/features) + */ + readonly features: GPUSupportedFeatures; + /** + * The **`info`** read-only property of the GPUAdapter interface returns a GPUAdapterInfo object containing identifying information about the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/info) + */ + readonly info: GPUAdapterInfo; + /** + * The **`limits`** read-only property of the GPUAdapter interface returns a GPUSupportedLimits object that describes the limits supported by the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/limits) + */ + readonly limits: GPUSupportedLimits; + /** + * The **`requestDevice()`** method of the GPUAdapter interface returns a Promise that fulfills with a GPUDevice object, which is the primary interface for communicating with the GPU. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/requestDevice) + */ + requestDevice(descriptor?: GPUDeviceDescriptor): Promise; +} + +declare var GPUAdapter: { + prototype: GPUAdapter; + new(): GPUAdapter; +}; + /** * The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter. * Available only in secure contexts. @@ -14998,6 +15045,7 @@ type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; +type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query"; type GPUFilterMode = "linear" | "nearest"; type GPUFrontFace = "ccw" | "cw"; type GPUIndexFormat = "uint16" | "uint32"; diff --git a/baselines/ts5.9/dom.generated.d.ts b/baselines/ts5.9/dom.generated.d.ts index 9ad155f30..4a83d8120 100644 --- a/baselines/ts5.9/dom.generated.d.ts +++ b/baselines/ts5.9/dom.generated.d.ts @@ -926,6 +926,12 @@ interface GPUDepthStencilState { stencilWriteMask?: GPUStencilValue; } +interface GPUDeviceDescriptor extends GPUObjectDescriptorBase { + defaultQueue?: GPUQueueDescriptor; + requiredFeatures?: GPUFeatureName[]; + requiredLimits?: Record; +} + interface GPUExtent3DDict { depthOrArrayLayers?: GPUIntegerCoordinate; height?: GPUIntegerCoordinate; @@ -996,6 +1002,9 @@ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase { type: GPUQueryType; } +interface GPUQueueDescriptor extends GPUObjectDescriptorBase { +} + interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase { } @@ -15080,6 +15089,44 @@ declare var FragmentDirective: { new(): FragmentDirective; }; +/** + * The **`GPUAdapter`** interface of the WebGPU API represents a GPU adapter. From this you can request a GPUDevice, adapter info, features, and limits. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter) + */ +interface GPUAdapter { + /** + * The **`features`** read-only property of the GPUAdapter interface returns a GPUSupportedFeatures object that describes additional functionality supported by the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/features) + */ + readonly features: GPUSupportedFeatures; + /** + * The **`info`** read-only property of the GPUAdapter interface returns a GPUAdapterInfo object containing identifying information about the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/info) + */ + readonly info: GPUAdapterInfo; + /** + * The **`limits`** read-only property of the GPUAdapter interface returns a GPUSupportedLimits object that describes the limits supported by the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/limits) + */ + readonly limits: GPUSupportedLimits; + /** + * The **`requestDevice()`** method of the GPUAdapter interface returns a Promise that fulfills with a GPUDevice object, which is the primary interface for communicating with the GPU. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/requestDevice) + */ + requestDevice(descriptor?: GPUDeviceDescriptor): Promise; +} + +declare var GPUAdapter: { + prototype: GPUAdapter; + new(): GPUAdapter; +}; + /** * The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter. * Available only in secure contexts. @@ -44202,6 +44249,7 @@ type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; +type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query"; type GPUFilterMode = "linear" | "nearest"; type GPUFrontFace = "ccw" | "cw"; type GPUIndexFormat = "uint16" | "uint32"; diff --git a/baselines/ts5.9/serviceworker.generated.d.ts b/baselines/ts5.9/serviceworker.generated.d.ts index 576c17059..3c52e7a99 100644 --- a/baselines/ts5.9/serviceworker.generated.d.ts +++ b/baselines/ts5.9/serviceworker.generated.d.ts @@ -393,6 +393,12 @@ interface GPUDepthStencilState { stencilWriteMask?: GPUStencilValue; } +interface GPUDeviceDescriptor extends GPUObjectDescriptorBase { + defaultQueue?: GPUQueueDescriptor; + requiredFeatures?: GPUFeatureName[]; + requiredLimits?: Record; +} + interface GPUExtent3DDict { depthOrArrayLayers?: GPUIntegerCoordinate; height?: GPUIntegerCoordinate; @@ -462,6 +468,9 @@ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase { type: GPUQueryType; } +interface GPUQueueDescriptor extends GPUObjectDescriptorBase { +} + interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase { } @@ -4519,6 +4528,44 @@ declare var FormData: { new(): FormData; }; +/** + * The **`GPUAdapter`** interface of the WebGPU API represents a GPU adapter. From this you can request a GPUDevice, adapter info, features, and limits. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter) + */ +interface GPUAdapter { + /** + * The **`features`** read-only property of the GPUAdapter interface returns a GPUSupportedFeatures object that describes additional functionality supported by the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/features) + */ + readonly features: GPUSupportedFeatures; + /** + * The **`info`** read-only property of the GPUAdapter interface returns a GPUAdapterInfo object containing identifying information about the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/info) + */ + readonly info: GPUAdapterInfo; + /** + * The **`limits`** read-only property of the GPUAdapter interface returns a GPUSupportedLimits object that describes the limits supported by the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/limits) + */ + readonly limits: GPUSupportedLimits; + /** + * The **`requestDevice()`** method of the GPUAdapter interface returns a Promise that fulfills with a GPUDevice object, which is the primary interface for communicating with the GPU. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/requestDevice) + */ + requestDevice(descriptor?: GPUDeviceDescriptor): Promise; +} + +declare var GPUAdapter: { + prototype: GPUAdapter; + new(): GPUAdapter; +}; + /** * The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter. * Available only in secure contexts. @@ -13311,6 +13358,7 @@ type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; +type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query"; type GPUFilterMode = "linear" | "nearest"; type GPUFrontFace = "ccw" | "cw"; type GPUIndexFormat = "uint16" | "uint32"; diff --git a/baselines/ts5.9/sharedworker.generated.d.ts b/baselines/ts5.9/sharedworker.generated.d.ts index de835f48e..7ffc1efc4 100644 --- a/baselines/ts5.9/sharedworker.generated.d.ts +++ b/baselines/ts5.9/sharedworker.generated.d.ts @@ -337,6 +337,12 @@ interface GPUDepthStencilState { stencilWriteMask?: GPUStencilValue; } +interface GPUDeviceDescriptor extends GPUObjectDescriptorBase { + defaultQueue?: GPUQueueDescriptor; + requiredFeatures?: GPUFeatureName[]; + requiredLimits?: Record; +} + interface GPUExtent3DDict { depthOrArrayLayers?: GPUIntegerCoordinate; height?: GPUIntegerCoordinate; @@ -406,6 +412,9 @@ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase { type: GPUQueryType; } +interface GPUQueueDescriptor extends GPUObjectDescriptorBase { +} + interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase { } @@ -4202,6 +4211,44 @@ declare var FormData: { new(): FormData; }; +/** + * The **`GPUAdapter`** interface of the WebGPU API represents a GPU adapter. From this you can request a GPUDevice, adapter info, features, and limits. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter) + */ +interface GPUAdapter { + /** + * The **`features`** read-only property of the GPUAdapter interface returns a GPUSupportedFeatures object that describes additional functionality supported by the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/features) + */ + readonly features: GPUSupportedFeatures; + /** + * The **`info`** read-only property of the GPUAdapter interface returns a GPUAdapterInfo object containing identifying information about the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/info) + */ + readonly info: GPUAdapterInfo; + /** + * The **`limits`** read-only property of the GPUAdapter interface returns a GPUSupportedLimits object that describes the limits supported by the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/limits) + */ + readonly limits: GPUSupportedLimits; + /** + * The **`requestDevice()`** method of the GPUAdapter interface returns a Promise that fulfills with a GPUDevice object, which is the primary interface for communicating with the GPU. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/requestDevice) + */ + requestDevice(descriptor?: GPUDeviceDescriptor): Promise; +} + +declare var GPUAdapter: { + prototype: GPUAdapter; + new(): GPUAdapter; +}; + /** * The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter. * Available only in secure contexts. @@ -12996,6 +13043,7 @@ type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; +type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query"; type GPUFilterMode = "linear" | "nearest"; type GPUFrontFace = "ccw" | "cw"; type GPUIndexFormat = "uint16" | "uint32"; diff --git a/baselines/ts5.9/webworker.generated.d.ts b/baselines/ts5.9/webworker.generated.d.ts index 16581190b..051a7f123 100644 --- a/baselines/ts5.9/webworker.generated.d.ts +++ b/baselines/ts5.9/webworker.generated.d.ts @@ -483,6 +483,12 @@ interface GPUDepthStencilState { stencilWriteMask?: GPUStencilValue; } +interface GPUDeviceDescriptor extends GPUObjectDescriptorBase { + defaultQueue?: GPUQueueDescriptor; + requiredFeatures?: GPUFeatureName[]; + requiredLimits?: Record; +} + interface GPUExtent3DDict { depthOrArrayLayers?: GPUIntegerCoordinate; height?: GPUIntegerCoordinate; @@ -553,6 +559,9 @@ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase { type: GPUQueryType; } +interface GPUQueueDescriptor extends GPUObjectDescriptorBase { +} + interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase { } @@ -5222,6 +5231,44 @@ declare var FormData: { new(): FormData; }; +/** + * The **`GPUAdapter`** interface of the WebGPU API represents a GPU adapter. From this you can request a GPUDevice, adapter info, features, and limits. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter) + */ +interface GPUAdapter { + /** + * The **`features`** read-only property of the GPUAdapter interface returns a GPUSupportedFeatures object that describes additional functionality supported by the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/features) + */ + readonly features: GPUSupportedFeatures; + /** + * The **`info`** read-only property of the GPUAdapter interface returns a GPUAdapterInfo object containing identifying information about the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/info) + */ + readonly info: GPUAdapterInfo; + /** + * The **`limits`** read-only property of the GPUAdapter interface returns a GPUSupportedLimits object that describes the limits supported by the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/limits) + */ + readonly limits: GPUSupportedLimits; + /** + * The **`requestDevice()`** method of the GPUAdapter interface returns a Promise that fulfills with a GPUDevice object, which is the primary interface for communicating with the GPU. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/requestDevice) + */ + requestDevice(descriptor?: GPUDeviceDescriptor): Promise; +} + +declare var GPUAdapter: { + prototype: GPUAdapter; + new(): GPUAdapter; +}; + /** * The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter. * Available only in secure contexts. @@ -14998,6 +15045,7 @@ type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; +type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query"; type GPUFilterMode = "linear" | "nearest"; type GPUFrontFace = "ccw" | "cw"; type GPUIndexFormat = "uint16" | "uint32"; diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index b3a23a3a1..ea365d62b 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -486,6 +486,12 @@ interface GPUDepthStencilState { stencilWriteMask?: GPUStencilValue; } +interface GPUDeviceDescriptor extends GPUObjectDescriptorBase { + defaultQueue?: GPUQueueDescriptor; + requiredFeatures?: GPUFeatureName[]; + requiredLimits?: Record; +} + interface GPUExtent3DDict { depthOrArrayLayers?: GPUIntegerCoordinate; height?: GPUIntegerCoordinate; @@ -556,6 +562,9 @@ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase { type: GPUQueryType; } +interface GPUQueueDescriptor extends GPUObjectDescriptorBase { +} + interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase { } @@ -5225,6 +5234,44 @@ declare var FormData: { new(): FormData; }; +/** + * The **`GPUAdapter`** interface of the WebGPU API represents a GPU adapter. From this you can request a GPUDevice, adapter info, features, and limits. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter) + */ +interface GPUAdapter { + /** + * The **`features`** read-only property of the GPUAdapter interface returns a GPUSupportedFeatures object that describes additional functionality supported by the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/features) + */ + readonly features: GPUSupportedFeatures; + /** + * The **`info`** read-only property of the GPUAdapter interface returns a GPUAdapterInfo object containing identifying information about the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/info) + */ + readonly info: GPUAdapterInfo; + /** + * The **`limits`** read-only property of the GPUAdapter interface returns a GPUSupportedLimits object that describes the limits supported by the adapter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/limits) + */ + readonly limits: GPUSupportedLimits; + /** + * The **`requestDevice()`** method of the GPUAdapter interface returns a Promise that fulfills with a GPUDevice object, which is the primary interface for communicating with the GPU. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/requestDevice) + */ + requestDevice(descriptor?: GPUDeviceDescriptor): Promise; +} + +declare var GPUAdapter: { + prototype: GPUAdapter; + new(): GPUAdapter; +}; + /** * The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter. * Available only in secure contexts. @@ -15001,6 +15048,7 @@ type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; type GPUDeviceLostReason = "destroyed" | "unknown"; type GPUErrorFilter = "internal" | "out-of-memory" | "validation"; +type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query"; type GPUFilterMode = "linear" | "nearest"; type GPUFrontFace = "ccw" | "cw"; type GPUIndexFormat = "uint16" | "uint32"; diff --git a/inputfiles/overridingTypes.jsonc b/inputfiles/overridingTypes.jsonc index ee54d917f..52ad33b7d 100644 --- a/inputfiles/overridingTypes.jsonc +++ b/inputfiles/overridingTypes.jsonc @@ -2874,9 +2874,6 @@ "GPU": { "exposed": "" }, - "GPUAdapter": { - "exposed": "" - }, "TrustedHTML": { "exposed": "" }, diff --git a/inputfiles/patches/webgpu.kdl b/inputfiles/patches/webgpu.kdl index e4b243521..9394976ee 100644 --- a/inputfiles/patches/webgpu.kdl +++ b/inputfiles/patches/webgpu.kdl @@ -7,11 +7,8 @@ removals { } enum GPUFeatureName { - clip-distances // Blink only as of 2024-11 - dual-source-blending // Blink only as of 2024-11 - float32-blendable // Blink only as of 2024-11 - texture-compression-astc-sliced-3d // No implementation as of 2024-11 - texture-compression-bc-sliced-3d // No implementation as of 2024-11 + texture-component-swizzle // Blink only as of 2026-02 + texture-formats-tier2 // Blink only as of 2026-02 } dictionary GPURequestAdapterOptions { diff --git a/package-lock.json b/package-lock.json index 2f63aa22d..134664e2d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -435,8 +435,7 @@ "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-7.3.2.tgz", "integrity": "sha512-vK2iWE/915Bg0PSb63NNDluX4iI7KOsqHCM/rTpBn4lNcjDocMLxuKzkse75K12lALZfQACsagD6aQYEmATB7Q==", "dev": true, - "license": "CC0-1.0", - "peer": true + "license": "CC0-1.0" }, "node_modules/@octokit/auth-token": { "version": "6.0.0", @@ -453,7 +452,6 @@ "integrity": "sha512-DhGl4xMVFGVIyMwswXeyzdL4uXD5OGILGX5N8Y+f6W7LhC1Ze2poSNrkF/fedpVDHEEZ+PHFW0vL14I+mm8K3Q==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@octokit/auth-token": "^6.0.0", "@octokit/graphql": "^9.0.3", @@ -861,7 +859,6 @@ "integrity": "sha512-BtE0k6cjwjLZoZixN0t5AKP0kSzlGu7FctRXYuPAm//aaiZhmfq1JwdYpYr1brzEspYyFeF+8XF5j2VK6oalrA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@typescript-eslint/scope-manager": "8.54.0", "@typescript-eslint/types": "8.54.0", @@ -1207,7 +1204,6 @@ "integrity": "sha512-hagf3AnrtIiiKs4fpVMk+0CSQLEuvaB5AhGpMdaWsbpnJ0yw0rUfGqFiUew4wYP94Ib90dGeCoDFonxe7j+/vg==", "dev": true, "license": "MIT", - "peer": true, "peerDependencies": { "webidl2": "^24.5.0" } @@ -1217,7 +1213,6 @@ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", "dev": true, - "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -1635,7 +1630,6 @@ "integrity": "sha512-dKYCMuPO1bmrpuogcjQ8z7ICCH3FP6WmxpwC03yjzGfZhj9fTJg6+bS1+UAplekbN2C+M61UNllGOOoAfGCrdQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@octokit/auth-token": "^4.0.0", "@octokit/graphql": "^7.1.0", @@ -1936,7 +1930,6 @@ "integrity": "sha512-LEyamqS7W5HB3ujJyvi0HQK/dtVINZvd5mAAp9eT5S/ujByGjiZLCzPcHVzuXbpJDJF/cxwHlfceVUDZ2lnSTw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@eslint-community/eslint-utils": "^4.8.0", "@eslint-community/regexpp": "^4.12.1", @@ -1997,7 +1990,6 @@ "integrity": "sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==", "dev": true, "license": "MIT", - "peer": true, "bin": { "eslint-config-prettier": "bin/cli.js" }, @@ -2975,7 +2967,8 @@ "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.12.2.tgz", "integrity": "sha512-IEn+pegP1aManZuckezWCO+XZQDplx1366JoVhTpMpBB1sPey/SbveZQUosKiKiGYjg1wH4pMlNgXbCiYgihQA==", "dev": true, - "license": "CC0-1.0" + "license": "CC0-1.0", + "peer": true }, "node_modules/memfs-or-file-map-to-github-branch": { "version": "1.3.0", @@ -3315,7 +3308,6 @@ "integrity": "sha512-UOnG6LftzbdaHZcKoPFtOcCKztrQ57WkHDeRD9t/PTQtmT0NHSeWWepj6pS0z/N7+08BHFDQVUrfmfMRcZwbMg==", "dev": true, "license": "MIT", - "peer": true, "bin": { "prettier": "bin/prettier.cjs" }, @@ -3608,6 +3600,7 @@ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", "dev": true, "license": "BSD-3-Clause", + "peer": true, "engines": { "node": ">=0.10.0" } @@ -3841,7 +3834,6 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=12" }, @@ -3899,7 +3891,6 @@ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", "dev": true, "license": "Apache-2.0", - "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -3978,7 +3969,6 @@ "integrity": "sha512-fxOigKkIem1iAgQ9t4cFOP+kWEA8y6Be/uh50FpJh0FijoeeT/VMrOyJzNLUgjy0rGMEcHeReKDCqj0g9dIe9A==", "dev": true, "license": "W3C", - "peer": true, "engines": { "node": ">= 18" }