dawn.WGPUSupportedFeatures
export interface WGPUSupportedFeatures {
/**
* Check if a feature is supported.
*
* @param name - Feature name
* @returns True if the feature is supported
*/
has(name: string): boolean;
/**
* Get all supported feature names.
*
* @returns Iterator over feature name strings
*/
values(): IterableIterator<string>;
/**
* Iterate over all supported feature names.
*
* @returns Iterator over feature name strings
*/
[Symbol.iterator](): IterableIterator<string>;
/**
* Number of supported features.
*/
readonly size: number;
}has((name: string) => boolean)- – Check if a feature is supported.
values(() => IterableIterator<string>)- – Get all supported feature names.
[Symbol.iterator](() => IterableIterator<string>)- – Iterate over all supported feature names.
- readonly
size(number) - – Number of supported features.
GPU feature support tracking.
Provides information about optional GPU features that the device supports.