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

# Interface GPUQuerySet

The **`GPUQuerySet`** interface of the WebGPU API is used to record the results of queries on passes, such as occlusion or timestamp queries. Available only in secure contexts.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet)

interface GPUQuerySet {  
    [count](#count): number;  
    [label](#label): string;  
    [type](#type): [GPUQueryType](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.GPUQueryType/);  
    [destroy](#destroy-1)(): void;  
}

#### Hierarchy ([View Summary](https://docs.maptiler.com/sdk-js/api-reference/hierarchy/#Externals.GPUQuerySet))

-   [GPUObjectBase](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.GPUObjectBase/)
    -   GPUQuerySet

##### Index

### Properties[](#properties)

[count](#count) [label](#label) [type](#type)

### Methods[](#methods)

[destroy](#destroy)

## Properties[](#properties-1)

### `Readonly`count[](#count)

count: number

The **`count`** read-only property of the GPUQuerySet interface is a number specifying the number of queries managed by the GPUQuerySet.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/count)

### label[](#label)

label: string

[MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label)

Inherited from [GPUObjectBase](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.GPUObjectBase/).[label](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.GPUObjectBase/#label)

### `Readonly`type[](#type)

type: [GPUQueryType](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.GPUQueryType/)

The **`type`** read-only property of the GPUQuerySet interface is an enumerated value specifying the type of queries managed by the GPUQuerySet.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/type)

## Methods[](#methods-1)

### destroy[](#destroy)

-   destroy(): void[](#destroy-1)
    
    The **`destroy()`** method of the GPUQuerySet interface destroys the GPUQuerySet.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/destroy)
    
    #### Returns void
