Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,12 @@ interface GPUDepthStencilState {
stencilWriteMask?: GPUStencilValue;
}

interface GPUDeviceDescriptor extends GPUObjectDescriptorBase {
defaultQueue?: GPUQueueDescriptor;
requiredFeatures?: GPUFeatureName[];
requiredLimits?: Record<string, GPUSize64 | undefined>;
}

interface GPUExtent3DDict {
depthOrArrayLayers?: GPUIntegerCoordinate;
height?: GPUIntegerCoordinate;
Expand Down Expand Up @@ -999,6 +1005,9 @@ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
type: GPUQueryType;
}

interface GPUQueueDescriptor extends GPUObjectDescriptorBase {
}

interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
}

Expand Down Expand Up @@ -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<GPUDevice>;
}

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.
Expand Down Expand Up @@ -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";
Expand Down
48 changes: 48 additions & 0 deletions baselines/serviceworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,12 @@ interface GPUDepthStencilState {
stencilWriteMask?: GPUStencilValue;
}

interface GPUDeviceDescriptor extends GPUObjectDescriptorBase {
defaultQueue?: GPUQueueDescriptor;
requiredFeatures?: GPUFeatureName[];
requiredLimits?: Record<string, GPUSize64 | undefined>;
}

interface GPUExtent3DDict {
depthOrArrayLayers?: GPUIntegerCoordinate;
height?: GPUIntegerCoordinate;
Expand Down Expand Up @@ -465,6 +471,9 @@ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
type: GPUQueryType;
}

interface GPUQueueDescriptor extends GPUObjectDescriptorBase {
}

interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
}

Expand Down Expand Up @@ -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<GPUDevice>;
}

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.
Expand Down Expand Up @@ -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";
Expand Down
48 changes: 48 additions & 0 deletions baselines/sharedworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,12 @@ interface GPUDepthStencilState {
stencilWriteMask?: GPUStencilValue;
}

interface GPUDeviceDescriptor extends GPUObjectDescriptorBase {
defaultQueue?: GPUQueueDescriptor;
requiredFeatures?: GPUFeatureName[];
requiredLimits?: Record<string, GPUSize64 | undefined>;
}

interface GPUExtent3DDict {
depthOrArrayLayers?: GPUIntegerCoordinate;
height?: GPUIntegerCoordinate;
Expand Down Expand Up @@ -409,6 +415,9 @@ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
type: GPUQueryType;
}

interface GPUQueueDescriptor extends GPUObjectDescriptorBase {
}

interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
}

Expand Down Expand Up @@ -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<GPUDevice>;
}

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.
Expand Down Expand Up @@ -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";
Expand Down
48 changes: 48 additions & 0 deletions baselines/ts5.5/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -926,6 +926,12 @@ interface GPUDepthStencilState {
stencilWriteMask?: GPUStencilValue;
}

interface GPUDeviceDescriptor extends GPUObjectDescriptorBase {
defaultQueue?: GPUQueueDescriptor;
requiredFeatures?: GPUFeatureName[];
requiredLimits?: Record<string, GPUSize64 | undefined>;
}

interface GPUExtent3DDict {
depthOrArrayLayers?: GPUIntegerCoordinate;
height?: GPUIntegerCoordinate;
Expand Down Expand Up @@ -996,6 +1002,9 @@ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
type: GPUQueryType;
}

interface GPUQueueDescriptor extends GPUObjectDescriptorBase {
}

interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
}

Expand Down Expand Up @@ -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<GPUDevice>;
}

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.
Expand Down Expand Up @@ -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";
Expand Down
48 changes: 48 additions & 0 deletions baselines/ts5.5/serviceworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,12 @@ interface GPUDepthStencilState {
stencilWriteMask?: GPUStencilValue;
}

interface GPUDeviceDescriptor extends GPUObjectDescriptorBase {
defaultQueue?: GPUQueueDescriptor;
requiredFeatures?: GPUFeatureName[];
requiredLimits?: Record<string, GPUSize64 | undefined>;
}

interface GPUExtent3DDict {
depthOrArrayLayers?: GPUIntegerCoordinate;
height?: GPUIntegerCoordinate;
Expand Down Expand Up @@ -462,6 +468,9 @@ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
type: GPUQueryType;
}

interface GPUQueueDescriptor extends GPUObjectDescriptorBase {
}

interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
}

Expand Down Expand Up @@ -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<GPUDevice>;
}

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.
Expand Down Expand Up @@ -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";
Expand Down
Loading