# GPUExternalTextureDescriptor.Builder

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

*** ** * ** ***


```
class GPUExternalTextureDescriptor.Builder
```

<br />

*** ** * ** ***

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

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExternalTextureDescriptor.Builder#Builder(androidx.webgpu.GPUExtent2D,androidx.webgpu.GPUColorSpaceDawn,kotlin.Int)( cropSize: https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExtent2D, srcColorSpace: https://developer.android.com/reference/kotlin/androidx/webgpu/GPUColorSpaceDawn, dstColorSpace: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExternalTextureDescriptor` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExternalTextureDescriptor.Builder#build()()` Builds the `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExternalTextureDescriptor`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExternalTextureDescriptor.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExternalTextureDescriptor.Builder#setCropOrigin(androidx.webgpu.GPUOrigin2D)(cropOrigin: https://developer.android.com/reference/kotlin/androidx/webgpu/GPUOrigin2D)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExternalTextureDescriptor.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExternalTextureDescriptor.Builder#setLabel(kotlin.String)(label: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExternalTextureDescriptor.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExternalTextureDescriptor.Builder#setMirrored(kotlin.Boolean)(mirrored: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExternalTextureDescriptor.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExternalTextureDescriptor.Builder#setPlane1(androidx.webgpu.GPUTextureView)(plane1: https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureView?)` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExternalTextureDescriptor.Builder` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExternalTextureDescriptor.Builder#setRotation(kotlin.Int)(rotation: 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(
    cropSize: GPUExtent2D,
    srcColorSpace: GPUColorSpaceDawn,
    dstColorSpace: Int
)
```

## Public functions

### build

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

```
fun build(): GPUExternalTextureDescriptor
```

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

### setCropOrigin

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

```
fun setCropOrigin(cropOrigin: GPUOrigin2D): GPUExternalTextureDescriptor.Builder
```

### setLabel

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

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

### setMirrored

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

```
fun setMirrored(mirrored: Boolean): GPUExternalTextureDescriptor.Builder
```

### setPlane1

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

```
fun setPlane1(plane1: GPUTextureView?): GPUExternalTextureDescriptor.Builder
```

### setRotation

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

```
fun setRotation(rotation: Int): GPUExternalTextureDescriptor.Builder
```