# GPUAdapterInfo.Builder

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

*** ** * ** ***


```
class GPUAdapterInfo.Builder
```

<br />

*** ** * ** ***

Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUAdapterInfo`.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUAdapterInfo.Builder#Builder(kotlin.String,kotlin.String,kotlin.String,kotlin.String,kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Int)( vendor: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, architecture: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, device: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, description: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, adapterType: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, vendorID: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, deviceID: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, subgroupMinSize: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, subgroupMaxSize: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUAdapterInfo` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUAdapterInfo.Builder#build()()` Builds the `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUAdapterInfo`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUAdapterInfo.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUAdapterInfo.Builder#setBackendType(kotlin.Int)(backendType: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |

## Public constructors

### Builder

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

```
Builder(
    vendor: String,
    architecture: String,
    device: String,
    description: String,
    adapterType: Int,
    vendorID: Int,
    deviceID: Int,
    subgroupMinSize: Int,
    subgroupMaxSize: Int
)
```

## Public functions

### build

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

```
fun build(): GPUAdapterInfo
```

Builds the `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUAdapterInfo`.

### setBackendType

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

```
fun setBackendType(backendType: Int): GPUAdapterInfo.Builder
```