# QueryType

Artifact: [androidx.webgpu:webgpu](https://developer.android.com/jetpack/androidx/releases/webgpu) [View Source](https://cs.android.com/search?q=file:androidx/webgpu/QueryType.kt+class:androidx.webgpu.QueryType) Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

*** ** * ** ***


```
public final class QueryType
```

<br />

*** ** * ** ***

Specifies the type of a query set.

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/QueryType#Occlusion() = 1` An occlusion query, which counts fragments that pass depth and stencil tests. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/QueryType#Timestamp() = 2` A timestamp query, which records GPU timestamps. |

| ### Public methods |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/webgpu/QueryType#toString(kotlin.Int)(int value)` |

## Constants

### Occlusion

```
public static final int Occlusion = 1
```

An occlusion query, which counts fragments that pass depth and stencil tests.

### Timestamp

```
public static final int Timestamp = 2
```

A timestamp query, which records GPU timestamps.

## Public methods

### toString

Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

```
public static final @NonNull String toString(int value)
```