Skip to main content

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

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

ParameterType
callbackfn(value, key, parent) => void
thisArg?any

Returns

void


has()

has(value): boolean;

Parameters

ParameterType
valuestring

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;