# GPUInstanceDescriptor

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

*** ** * ** ***


```
class GPUInstanceDescriptor
```

<br />

*** ** * ** ***

Describes an instance to be created.

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/webgpu/GPUInstanceDescriptor.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUInstanceDescriptor`. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUInstanceDescriptor#GPUInstanceDescriptor()()` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUInstanceDescriptor#GPUInstanceDescriptor(kotlin.IntArray,androidx.webgpu.GPUInstanceLimits)( requiredFeatures: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html, requiredLimits: https://developer.android.com/reference/kotlin/androidx/webgpu/GPUInstanceLimits? )` |
| `@https://developer.android.com/reference/kotlin/androidx/webgpu/ExperimentalWebGpuApi https://developer.android.com/reference/kotlin/androidx/webgpu/GPUInstanceDescriptor#GPUInstanceDescriptor(kotlin.IntArray,androidx.webgpu.GPUInstanceLimits,androidx.webgpu.GPUDawnTogglesDescriptor)( requiredFeatures: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html, requiredLimits: https://developer.android.com/reference/kotlin/androidx/webgpu/GPUInstanceLimits?, dawnTogglesDescriptor: https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDawnTogglesDescriptor? )` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDawnTogglesDescriptor?` | `@https://developer.android.com/reference/kotlin/androidx/webgpu/ExperimentalWebGpuApi https://developer.android.com/reference/kotlin/androidx/webgpu/GPUInstanceDescriptor#dawnTogglesDescriptor()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUInstanceDescriptor#requiredFeatures()` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUInstanceLimits?` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUInstanceDescriptor#requiredLimits()` |

## Public constructors

### GPUInstanceDescriptor

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

```
GPUInstanceDescriptor()
```

### GPUInstanceDescriptor

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

```
GPUInstanceDescriptor(
    requiredFeatures: IntArray = intArrayOf(),
    requiredLimits: GPUInstanceLimits? = null
)
```

### GPUInstanceDescriptor

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

```
@ExperimentalWebGpuApi
GPUInstanceDescriptor(
    requiredFeatures: IntArray = intArrayOf(),
    requiredLimits: GPUInstanceLimits? = null,
    dawnTogglesDescriptor: GPUDawnTogglesDescriptor?
)
```

## Public properties

### dawnTogglesDescriptor

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

```
@ExperimentalWebGpuApi
var dawnTogglesDescriptor: GPUDawnTogglesDescriptor?
```

### requiredFeatures

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

```
var requiredFeatures: IntArray
```

Value is one of the following:

- `1`
- `2`
- `3`

<br />

### requiredLimits

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

```
var requiredLimits: GPUInstanceLimits?
```