# GPUCompatibilityModeLimits.Builder

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

*** ** * ** ***


```
class GPUCompatibilityModeLimits.Builder
```

<br />

*** ** * ** ***

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

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUCompatibilityModeLimits.Builder#Builder()()` |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUCompatibilityModeLimits` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUCompatibilityModeLimits.Builder#build()()` Builds the `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUCompatibilityModeLimits`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUCompatibilityModeLimits.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUCompatibilityModeLimits.Builder#setMaxStorageBuffersInFragmentStage(kotlin.Int)( maxStorageBuffersInFragmentStage: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUCompatibilityModeLimits.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUCompatibilityModeLimits.Builder#setMaxStorageBuffersInVertexStage(kotlin.Int)(maxStorageBuffersInVertexStage: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUCompatibilityModeLimits.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUCompatibilityModeLimits.Builder#setMaxStorageTexturesInFragmentStage(kotlin.Int)( maxStorageTexturesInFragmentStage: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUCompatibilityModeLimits.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUCompatibilityModeLimits.Builder#setMaxStorageTexturesInVertexStage(kotlin.Int)( maxStorageTexturesInVertexStage: 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()
```

## Public functions

### build

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

```
fun build(): GPUCompatibilityModeLimits
```

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

### setMaxStorageBuffersInFragmentStage

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

```
fun setMaxStorageBuffersInFragmentStage(
    maxStorageBuffersInFragmentStage: Int
): GPUCompatibilityModeLimits.Builder
```

### setMaxStorageBuffersInVertexStage

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

```
fun setMaxStorageBuffersInVertexStage(maxStorageBuffersInVertexStage: Int): GPUCompatibilityModeLimits.Builder
```

### setMaxStorageTexturesInFragmentStage

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

```
fun setMaxStorageTexturesInFragmentStage(
    maxStorageTexturesInFragmentStage: Int
): GPUCompatibilityModeLimits.Builder
```

### setMaxStorageTexturesInVertexStage

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

```
fun setMaxStorageTexturesInVertexStage(
    maxStorageTexturesInVertexStage: Int
): GPUCompatibilityModeLimits.Builder
```