# GPUTextureViewDescriptor.Builder

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

*** ** * ** ***


```
class GPUTextureViewDescriptor.Builder
```

<br />

*** ** * ** ***

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

## Summary

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

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureViewDescriptor` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureViewDescriptor.Builder#build()()` Builds the `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureViewDescriptor`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureViewDescriptor.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureViewDescriptor.Builder#setArrayLayerCount(kotlin.Int)(arrayLayerCount: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureViewDescriptor.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureViewDescriptor.Builder#setAspect(kotlin.Int)(aspect: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureViewDescriptor.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureViewDescriptor.Builder#setBaseArrayLayer(kotlin.Int)(baseArrayLayer: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureViewDescriptor.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureViewDescriptor.Builder#setBaseMipLevel(kotlin.Int)(baseMipLevel: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureViewDescriptor.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureViewDescriptor.Builder#setDimension(kotlin.Int)(dimension: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureViewDescriptor.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureViewDescriptor.Builder#setFormat(kotlin.Int)(format: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureViewDescriptor.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureViewDescriptor.Builder#setLabel(kotlin.String)(label: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureViewDescriptor.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureViewDescriptor.Builder#setMipLevelCount(kotlin.Int)(mipLevelCount: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureViewDescriptor.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureViewDescriptor.Builder#setTextureComponentSwizzleDescriptor(androidx.webgpu.GPUTextureComponentSwizzleDescriptor)( textureComponentSwizzleDescriptor: https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureComponentSwizzleDescriptor? )` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureViewDescriptor.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureViewDescriptor.Builder#setUsage(kotlin.Int)(usage: 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(): GPUTextureViewDescriptor
```

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

### setArrayLayerCount

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

```
fun setArrayLayerCount(arrayLayerCount: Int): GPUTextureViewDescriptor.Builder
```

### setAspect

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

```
fun setAspect(aspect: Int): GPUTextureViewDescriptor.Builder
```

### setBaseArrayLayer

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

```
fun setBaseArrayLayer(baseArrayLayer: Int): GPUTextureViewDescriptor.Builder
```

### setBaseMipLevel

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

```
fun setBaseMipLevel(baseMipLevel: Int): GPUTextureViewDescriptor.Builder
```

### setDimension

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

```
fun setDimension(dimension: Int): GPUTextureViewDescriptor.Builder
```

### setFormat

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

```
fun setFormat(format: Int): GPUTextureViewDescriptor.Builder
```

### setLabel

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

```
fun setLabel(label: String?): GPUTextureViewDescriptor.Builder
```

### setMipLevelCount

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

```
fun setMipLevelCount(mipLevelCount: Int): GPUTextureViewDescriptor.Builder
```

### setTextureComponentSwizzleDescriptor

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

```
fun setTextureComponentSwizzleDescriptor(
    textureComponentSwizzleDescriptor: GPUTextureComponentSwizzleDescriptor?
): GPUTextureViewDescriptor.Builder
```

### setUsage

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

```
fun setUsage(usage: Int): GPUTextureViewDescriptor.Builder
```