# GPUExternalTextureDescriptor

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) Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

*** ** * ** ***


```
@ExperimentalWebGpuApi
class GPUExternalTextureDescriptor
```

<br />

*** ** * ** ***

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExternalTextureDescriptor.Builder` Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExternalTextureDescriptor`. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExternalTextureDescriptor#GPUExternalTextureDescriptor(androidx.webgpu.GPUExtent2D,androidx.webgpu.GPUColorSpaceDawn,kotlin.Int,kotlin.String,androidx.webgpu.GPUTextureView,androidx.webgpu.GPUOrigin2D,kotlin.Boolean,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, label: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, plane1: https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureView?, cropOrigin: https://developer.android.com/reference/kotlin/androidx/webgpu/GPUOrigin2D, mirrored: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, rotation: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUOrigin2D` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExternalTextureDescriptor#cropOrigin()` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExtent2D` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExternalTextureDescriptor#cropSize()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExternalTextureDescriptor#dstColorSpace()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExternalTextureDescriptor#label()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExternalTextureDescriptor#mirrored()` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureView?` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExternalTextureDescriptor#plane1()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExternalTextureDescriptor#rotation()` |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUColorSpaceDawn` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExternalTextureDescriptor#srcColorSpace()` |

## Public constructors

### GPUExternalTextureDescriptor

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

```
GPUExternalTextureDescriptor(
    cropSize: GPUExtent2D,
    srcColorSpace: GPUColorSpaceDawn,
    dstColorSpace: Int,
    label: String? = null,
    plane1: GPUTextureView? = null,
    cropOrigin: GPUOrigin2D = GPUOrigin2D(),
    mirrored: Boolean = false,
    rotation: Int = ExternalTextureRotation.Rotate0Degrees
)
```

## Public properties

### cropOrigin

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

```
var cropOrigin: GPUOrigin2D
```

### cropSize

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

```
var cropSize: GPUExtent2D
```

### dstColorSpace

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

```
var dstColorSpace: Int
```

Value is one of the following:

- `1`
- `2`
- `327683`
- `327684`
- `327685`

<br />

### label

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

```
var label: String?
```

### mirrored

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

```
var mirrored: Boolean
```

### plane1

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

```
var plane1: GPUTextureView?
```

### rotation

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

```
var rotation: Int
```

Value is one of the following:

- `1`
- `2`
- `3`
- `4`

<br />

### srcColorSpace

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

```
var srcColorSpace: GPUColorSpaceDawn
```