Skip to content

Commit 8149f3c

Browse files
authored
Add GPUAdapterInfo (#2394)
Co-authored-by: saschanaz <saschanaz@users.noreply.github.com>
1 parent 6a87c4c commit 8149f3c

17 files changed

+896
-3
lines changed

baselines/dom.generated.d.ts

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14764,6 +14764,62 @@ declare var FragmentDirective: {
1476414764
new(): FragmentDirective;
1476514765
};
1476614766

14767+
/**
14768+
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
14769+
* Available only in secure contexts.
14770+
*
14771+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo)
14772+
*/
14773+
interface GPUAdapterInfo {
14774+
/**
14775+
* The **`architecture`** read-only property of the GPUAdapterInfo interface returns the name of the family or class of GPUs the adapter belongs to, or an empty string if it is not available.
14776+
*
14777+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/architecture)
14778+
*/
14779+
readonly architecture: string;
14780+
/**
14781+
* The **`description`** read-only property of the GPUAdapterInfo interface returns a human-readable string describing the adapter, or an empty string if it is not available.
14782+
*
14783+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/description)
14784+
*/
14785+
readonly description: string;
14786+
/**
14787+
* The **`device`** read-only property of the GPUAdapterInfo interface returns a vendor-specific identifier for the adapter, or an empty string if it is not available.
14788+
*
14789+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/device)
14790+
*/
14791+
readonly device: string;
14792+
/**
14793+
* The **`isFallbackAdapter`** read-only property of the GPUAdapterInfo interface returns true if the adapter is a fallback adapter, and false if not.
14794+
*
14795+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/isFallbackAdapter)
14796+
*/
14797+
readonly isFallbackAdapter: boolean;
14798+
/**
14799+
* The **`subgroupMaxSize`** read-only property of the GPUAdapterInfo interface returns the maximum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
14800+
*
14801+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMaxSize)
14802+
*/
14803+
readonly subgroupMaxSize: number;
14804+
/**
14805+
* The **`subgroupMinSize`** read-only property of the GPUAdapterInfo interface returns the minimum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
14806+
*
14807+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMinSize)
14808+
*/
14809+
readonly subgroupMinSize: number;
14810+
/**
14811+
* The **`vendor`** read-only property of the GPUAdapterInfo interface returns the name of the adapter vendor, or an empty string if it is not available.
14812+
*
14813+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/vendor)
14814+
*/
14815+
readonly vendor: string;
14816+
}
14817+
14818+
declare var GPUAdapterInfo: {
14819+
prototype: GPUAdapterInfo;
14820+
new(): GPUAdapterInfo;
14821+
};
14822+
1476714823
/**
1476814824
* 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.
1476914825
* Available only in secure contexts.

baselines/serviceworker.generated.d.ts

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4207,6 +4207,62 @@ declare var FormData: {
42074207
new(): FormData;
42084208
};
42094209

4210+
/**
4211+
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
4212+
* Available only in secure contexts.
4213+
*
4214+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo)
4215+
*/
4216+
interface GPUAdapterInfo {
4217+
/**
4218+
* The **`architecture`** read-only property of the GPUAdapterInfo interface returns the name of the family or class of GPUs the adapter belongs to, or an empty string if it is not available.
4219+
*
4220+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/architecture)
4221+
*/
4222+
readonly architecture: string;
4223+
/**
4224+
* The **`description`** read-only property of the GPUAdapterInfo interface returns a human-readable string describing the adapter, or an empty string if it is not available.
4225+
*
4226+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/description)
4227+
*/
4228+
readonly description: string;
4229+
/**
4230+
* The **`device`** read-only property of the GPUAdapterInfo interface returns a vendor-specific identifier for the adapter, or an empty string if it is not available.
4231+
*
4232+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/device)
4233+
*/
4234+
readonly device: string;
4235+
/**
4236+
* The **`isFallbackAdapter`** read-only property of the GPUAdapterInfo interface returns true if the adapter is a fallback adapter, and false if not.
4237+
*
4238+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/isFallbackAdapter)
4239+
*/
4240+
readonly isFallbackAdapter: boolean;
4241+
/**
4242+
* The **`subgroupMaxSize`** read-only property of the GPUAdapterInfo interface returns the maximum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
4243+
*
4244+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMaxSize)
4245+
*/
4246+
readonly subgroupMaxSize: number;
4247+
/**
4248+
* The **`subgroupMinSize`** read-only property of the GPUAdapterInfo interface returns the minimum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
4249+
*
4250+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMinSize)
4251+
*/
4252+
readonly subgroupMinSize: number;
4253+
/**
4254+
* The **`vendor`** read-only property of the GPUAdapterInfo interface returns the name of the adapter vendor, or an empty string if it is not available.
4255+
*
4256+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/vendor)
4257+
*/
4258+
readonly vendor: string;
4259+
}
4260+
4261+
declare var GPUAdapterInfo: {
4262+
prototype: GPUAdapterInfo;
4263+
new(): GPUAdapterInfo;
4264+
};
4265+
42104266
/**
42114267
* 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.
42124268
* Available only in secure contexts.

baselines/sharedworker.generated.d.ts

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3890,6 +3890,62 @@ declare var FormData: {
38903890
new(): FormData;
38913891
};
38923892

3893+
/**
3894+
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
3895+
* Available only in secure contexts.
3896+
*
3897+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo)
3898+
*/
3899+
interface GPUAdapterInfo {
3900+
/**
3901+
* The **`architecture`** read-only property of the GPUAdapterInfo interface returns the name of the family or class of GPUs the adapter belongs to, or an empty string if it is not available.
3902+
*
3903+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/architecture)
3904+
*/
3905+
readonly architecture: string;
3906+
/**
3907+
* The **`description`** read-only property of the GPUAdapterInfo interface returns a human-readable string describing the adapter, or an empty string if it is not available.
3908+
*
3909+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/description)
3910+
*/
3911+
readonly description: string;
3912+
/**
3913+
* The **`device`** read-only property of the GPUAdapterInfo interface returns a vendor-specific identifier for the adapter, or an empty string if it is not available.
3914+
*
3915+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/device)
3916+
*/
3917+
readonly device: string;
3918+
/**
3919+
* The **`isFallbackAdapter`** read-only property of the GPUAdapterInfo interface returns true if the adapter is a fallback adapter, and false if not.
3920+
*
3921+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/isFallbackAdapter)
3922+
*/
3923+
readonly isFallbackAdapter: boolean;
3924+
/**
3925+
* The **`subgroupMaxSize`** read-only property of the GPUAdapterInfo interface returns the maximum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
3926+
*
3927+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMaxSize)
3928+
*/
3929+
readonly subgroupMaxSize: number;
3930+
/**
3931+
* The **`subgroupMinSize`** read-only property of the GPUAdapterInfo interface returns the minimum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
3932+
*
3933+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMinSize)
3934+
*/
3935+
readonly subgroupMinSize: number;
3936+
/**
3937+
* The **`vendor`** read-only property of the GPUAdapterInfo interface returns the name of the adapter vendor, or an empty string if it is not available.
3938+
*
3939+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/vendor)
3940+
*/
3941+
readonly vendor: string;
3942+
}
3943+
3944+
declare var GPUAdapterInfo: {
3945+
prototype: GPUAdapterInfo;
3946+
new(): GPUAdapterInfo;
3947+
};
3948+
38933949
/**
38943950
* 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.
38953951
* Available only in secure contexts.

baselines/ts5.5/dom.generated.d.ts

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14750,6 +14750,62 @@ declare var FragmentDirective: {
1475014750
new(): FragmentDirective;
1475114751
};
1475214752

14753+
/**
14754+
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
14755+
* Available only in secure contexts.
14756+
*
14757+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo)
14758+
*/
14759+
interface GPUAdapterInfo {
14760+
/**
14761+
* The **`architecture`** read-only property of the GPUAdapterInfo interface returns the name of the family or class of GPUs the adapter belongs to, or an empty string if it is not available.
14762+
*
14763+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/architecture)
14764+
*/
14765+
readonly architecture: string;
14766+
/**
14767+
* The **`description`** read-only property of the GPUAdapterInfo interface returns a human-readable string describing the adapter, or an empty string if it is not available.
14768+
*
14769+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/description)
14770+
*/
14771+
readonly description: string;
14772+
/**
14773+
* The **`device`** read-only property of the GPUAdapterInfo interface returns a vendor-specific identifier for the adapter, or an empty string if it is not available.
14774+
*
14775+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/device)
14776+
*/
14777+
readonly device: string;
14778+
/**
14779+
* The **`isFallbackAdapter`** read-only property of the GPUAdapterInfo interface returns true if the adapter is a fallback adapter, and false if not.
14780+
*
14781+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/isFallbackAdapter)
14782+
*/
14783+
readonly isFallbackAdapter: boolean;
14784+
/**
14785+
* The **`subgroupMaxSize`** read-only property of the GPUAdapterInfo interface returns the maximum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
14786+
*
14787+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMaxSize)
14788+
*/
14789+
readonly subgroupMaxSize: number;
14790+
/**
14791+
* The **`subgroupMinSize`** read-only property of the GPUAdapterInfo interface returns the minimum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
14792+
*
14793+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMinSize)
14794+
*/
14795+
readonly subgroupMinSize: number;
14796+
/**
14797+
* The **`vendor`** read-only property of the GPUAdapterInfo interface returns the name of the adapter vendor, or an empty string if it is not available.
14798+
*
14799+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/vendor)
14800+
*/
14801+
readonly vendor: string;
14802+
}
14803+
14804+
declare var GPUAdapterInfo: {
14805+
prototype: GPUAdapterInfo;
14806+
new(): GPUAdapterInfo;
14807+
};
14808+
1475314809
/**
1475414810
* 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.
1475514811
* Available only in secure contexts.

baselines/ts5.5/serviceworker.generated.d.ts

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4204,6 +4204,62 @@ declare var FormData: {
42044204
new(): FormData;
42054205
};
42064206

4207+
/**
4208+
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
4209+
* Available only in secure contexts.
4210+
*
4211+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo)
4212+
*/
4213+
interface GPUAdapterInfo {
4214+
/**
4215+
* The **`architecture`** read-only property of the GPUAdapterInfo interface returns the name of the family or class of GPUs the adapter belongs to, or an empty string if it is not available.
4216+
*
4217+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/architecture)
4218+
*/
4219+
readonly architecture: string;
4220+
/**
4221+
* The **`description`** read-only property of the GPUAdapterInfo interface returns a human-readable string describing the adapter, or an empty string if it is not available.
4222+
*
4223+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/description)
4224+
*/
4225+
readonly description: string;
4226+
/**
4227+
* The **`device`** read-only property of the GPUAdapterInfo interface returns a vendor-specific identifier for the adapter, or an empty string if it is not available.
4228+
*
4229+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/device)
4230+
*/
4231+
readonly device: string;
4232+
/**
4233+
* The **`isFallbackAdapter`** read-only property of the GPUAdapterInfo interface returns true if the adapter is a fallback adapter, and false if not.
4234+
*
4235+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/isFallbackAdapter)
4236+
*/
4237+
readonly isFallbackAdapter: boolean;
4238+
/**
4239+
* The **`subgroupMaxSize`** read-only property of the GPUAdapterInfo interface returns the maximum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
4240+
*
4241+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMaxSize)
4242+
*/
4243+
readonly subgroupMaxSize: number;
4244+
/**
4245+
* The **`subgroupMinSize`** read-only property of the GPUAdapterInfo interface returns the minimum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
4246+
*
4247+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMinSize)
4248+
*/
4249+
readonly subgroupMinSize: number;
4250+
/**
4251+
* The **`vendor`** read-only property of the GPUAdapterInfo interface returns the name of the adapter vendor, or an empty string if it is not available.
4252+
*
4253+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/vendor)
4254+
*/
4255+
readonly vendor: string;
4256+
}
4257+
4258+
declare var GPUAdapterInfo: {
4259+
prototype: GPUAdapterInfo;
4260+
new(): GPUAdapterInfo;
4261+
};
4262+
42074263
/**
42084264
* 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.
42094265
* Available only in secure contexts.

baselines/ts5.5/sharedworker.generated.d.ts

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3887,6 +3887,62 @@ declare var FormData: {
38873887
new(): FormData;
38883888
};
38893889

3890+
/**
3891+
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
3892+
* Available only in secure contexts.
3893+
*
3894+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo)
3895+
*/
3896+
interface GPUAdapterInfo {
3897+
/**
3898+
* The **`architecture`** read-only property of the GPUAdapterInfo interface returns the name of the family or class of GPUs the adapter belongs to, or an empty string if it is not available.
3899+
*
3900+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/architecture)
3901+
*/
3902+
readonly architecture: string;
3903+
/**
3904+
* The **`description`** read-only property of the GPUAdapterInfo interface returns a human-readable string describing the adapter, or an empty string if it is not available.
3905+
*
3906+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/description)
3907+
*/
3908+
readonly description: string;
3909+
/**
3910+
* The **`device`** read-only property of the GPUAdapterInfo interface returns a vendor-specific identifier for the adapter, or an empty string if it is not available.
3911+
*
3912+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/device)
3913+
*/
3914+
readonly device: string;
3915+
/**
3916+
* The **`isFallbackAdapter`** read-only property of the GPUAdapterInfo interface returns true if the adapter is a fallback adapter, and false if not.
3917+
*
3918+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/isFallbackAdapter)
3919+
*/
3920+
readonly isFallbackAdapter: boolean;
3921+
/**
3922+
* The **`subgroupMaxSize`** read-only property of the GPUAdapterInfo interface returns the maximum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
3923+
*
3924+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMaxSize)
3925+
*/
3926+
readonly subgroupMaxSize: number;
3927+
/**
3928+
* The **`subgroupMinSize`** read-only property of the GPUAdapterInfo interface returns the minimum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
3929+
*
3930+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMinSize)
3931+
*/
3932+
readonly subgroupMinSize: number;
3933+
/**
3934+
* The **`vendor`** read-only property of the GPUAdapterInfo interface returns the name of the adapter vendor, or an empty string if it is not available.
3935+
*
3936+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/vendor)
3937+
*/
3938+
readonly vendor: string;
3939+
}
3940+
3941+
declare var GPUAdapterInfo: {
3942+
prototype: GPUAdapterInfo;
3943+
new(): GPUAdapterInfo;
3944+
};
3945+
38903946
/**
38913947
* 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.
38923948
* Available only in secure contexts.

0 commit comments

Comments
 (0)