---
title: "GPUSupportedFeatures | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

# 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](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures)

interface GPUSupportedFeatures {  
    [size](#size): number;  
    ["\[iterator\]"](#iterator-1)(): [SetIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.SetIterator/)<string\>;  
    [entries](#entries-1)(): [SetIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.SetIterator/)<\[string, string\]\>;  
    [forEach](#foreach-1)(  
        callbackfn: (  
            value: string,  
            key: string,  
            parent: GPUSupportedFeatures,  
        ) \=> void,  
        thisArg?: any,  
    ): void;  
    [has](#has-1)(value: string): boolean;  
    [keys](#keys-1)(): [SetIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.SetIterator/)<string\>;  
    [values](#values-1)(): [SetIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.SetIterator/)<string\>;  
}

#### Hierarchy

-   ReadonlySet<string\>
    -   GPUSupportedFeatures

##### Index

### Properties[](#properties)

[size](#size)

### Methods[](#methods)

[\[iterator\]](#iterator) [entries](#entries) [forEach](#foreach) [has](#has) [keys](#keys) [values](#values)

## Properties[](#properties-1)

### `Readonly`size[](#size)

size: number

## Methods[](#methods-1)

### \[iterator\][](#iterator)

-   "\[iterator\]"(): [SetIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.SetIterator/)<string\>[](#iterator-1)
    
    Iterates over values in the set.
    
    #### Returns [SetIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.SetIterator/)<string\>
    

### entries[](#entries)

-   entries(): [SetIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.SetIterator/)<\[string, string\]\>[](#entries-1)
    
    Returns an iterable of \[v,v\] pairs for every value `v` in the set.
    
    #### Returns [SetIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.SetIterator/)<\[string, string\]\>
    

### forEach[](#foreach)

-   forEach(  
        callbackfn: (  
            value: string,  
            key: string,  
            parent: GPUSupportedFeatures,  
        ) \=> void,  
        thisArg?: any,  
    ): void[](#foreach-1)
    
    #### Parameters
    
    -   callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) \=> void
    -   `Optional`thisArg: any
    
    #### Returns void
    

### has[](#has)

-   has(value: string): boolean[](#has-1)
    
    #### Parameters
    
    -   value: string
    
    #### Returns boolean
    

### keys[](#keys)

-   keys(): [SetIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.SetIterator/)<string\>[](#keys-1)
    
    Despite its name, returns an iterable of the values in the set.
    
    #### Returns [SetIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.SetIterator/)<string\>
    

### values[](#values)

-   values(): [SetIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.SetIterator/)<string\>[](#values-1)
    
    Returns an iterable of values in the set.
    
    #### Returns [SetIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.SetIterator/)<string\>
