For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages
are available by appending .md to any URL.
Interface GPUSupportedFeatures
interface GPUSupportedFeatures {
size: number;
"[iterator]"(): SetIterator<string>;
entries(): SetIterator<[string, string]>;
forEach(
callbackfn: (
value: string,
key: string,
parent: GPUSupportedFeatures,
) => void,
thisArg?: any,
): void;
has(value: string): boolean;
keys(): SetIterator<string>;
values(): SetIterator<string>;
}
size: number;
"[iterator]"(): SetIterator<string>;
entries(): SetIterator<[string, string]>;
forEach(
callbackfn: (
value: string,
key: string,
parent: GPUSupportedFeatures,
) => void,
thisArg?: any,
): void;
has(value: string): boolean;
keys(): SetIterator<string>;
values(): SetIterator<string>;
}
Hierarchy
- ReadonlySet<string>
- GPUSupportedFeatures
Methods
[iterator]
-
Iterates over values in the set.
Returns SetIterator<string>
entries
-
Returns an iterable of [v,v] pairs for every value
vin the set.Returns SetIterator<[string, string]>
forEach
-
forEach(
callbackfn: (
value: string,
key: string,
parent: GPUSupportedFeatures,
) => void,
thisArg?: any,
): voidParameters
- callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void
OptionalthisArg: any
Returns void
has
-
Parameters
- value: string
Returns boolean
keys
-
Despite its name, returns an iterable of the values in the set.
Returns SetIterator<string>
values
-
Returns an iterable of values in the set.
Returns SetIterator<string>
The
GPUSupportedFeaturesinterface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter. Available only in secure contexts.MDN Reference