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

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.

MDN Reference

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>;
}

Hierarchy

  • ReadonlySet<string>
    • GPUSupportedFeatures
Index
size: number
  • Returns an iterable of [v,v] pairs for every value v in the set.

    Returns SetIterator<[string, string]>

  • Parameters

    • callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void
    • OptionalthisArg: any

    Returns void

  • Parameters

    • value: string

    Returns boolean

  • Despite its name, returns an iterable of the values in the set.

    Returns SetIterator<string>

Was this helpful?