GPUSupportedFeatures
The GPUSupportedFeatures interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
Available only in secure contexts.
Extends
ReadonlySet<string>
Methods
[iterator]()
iterator: SetIterator<string>;
Iterates over values in the set.
Returns
SetIterator<string>
entries()
entries(): SetIterator<[string, string]>;
Returns an iterable of [v,v] pairs for every value v in the set.
Returns
SetIterator<[string, string]>
forEach()
forEach(callbackfn, thisArg?): void;
Parameters
| Parameter | Type |
|---|---|
callbackfn | (value, key, parent) => void |
thisArg? | any |
Returns
void
has()
has(value): boolean;
Parameters
| Parameter | Type |
|---|---|
value | string |
Returns
boolean
keys()
keys(): SetIterator<string>;
Despite its name, returns an iterable of the values in the set.
Returns
SetIterator<string>
values()
values(): SetIterator<string>;
Returns an iterable of values in the set.
Returns
SetIterator<string>
Properties
size
readonly size: number;