# 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)

*** ** * ** ***


```
public final class GPUCompatibilityModeLimits.Builder
```

<br />

*** ** * ** ***

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

## Summary

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

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPUCompatibilityModeLimits` | `https://developer.android.com/reference/androidx/webgpu/GPUCompatibilityModeLimits.Builder#build()()` Builds the `https://developer.android.com/reference/androidx/webgpu/GPUCompatibilityModeLimits`. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPUCompatibilityModeLimits.Builder` | `https://developer.android.com/reference/androidx/webgpu/GPUCompatibilityModeLimits.Builder#setMaxStorageBuffersInFragmentStage(kotlin.Int)( int maxStorageBuffersInFragmentStage )` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPUCompatibilityModeLimits.Builder` | `https://developer.android.com/reference/androidx/webgpu/GPUCompatibilityModeLimits.Builder#setMaxStorageBuffersInVertexStage(kotlin.Int)(int maxStorageBuffersInVertexStage)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPUCompatibilityModeLimits.Builder` | `https://developer.android.com/reference/androidx/webgpu/GPUCompatibilityModeLimits.Builder#setMaxStorageTexturesInFragmentStage(kotlin.Int)( int maxStorageTexturesInFragmentStage )` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPUCompatibilityModeLimits.Builder` | `https://developer.android.com/reference/androidx/webgpu/GPUCompatibilityModeLimits.Builder#setMaxStorageTexturesInVertexStage(kotlin.Int)( int maxStorageTexturesInVertexStage )` |

## Public constructors

### Builder

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

```
public Builder()
```

## Public methods

### build

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

```
public final @NonNull GPUCompatibilityModeLimits build()
```

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

### setMaxStorageBuffersInFragmentStage

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

```
public final @NonNull GPUCompatibilityModeLimits.Builder setMaxStorageBuffersInFragmentStage(
    int maxStorageBuffersInFragmentStage
)
```

### setMaxStorageBuffersInVertexStage

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

```
public final @NonNull GPUCompatibilityModeLimits.Builder setMaxStorageBuffersInVertexStage(int maxStorageBuffersInVertexStage)
```

### setMaxStorageTexturesInFragmentStage

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

```
public final @NonNull GPUCompatibilityModeLimits.Builder setMaxStorageTexturesInFragmentStage(
    int maxStorageTexturesInFragmentStage
)
```

### setMaxStorageTexturesInVertexStage

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

```
public final @NonNull GPUCompatibilityModeLimits.Builder setMaxStorageTexturesInVertexStage(
    int maxStorageTexturesInVertexStage
)
```