# GPUTextureComponentSwizzleDescriptor

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

*** ** * ** ***


```
class GPUTextureComponentSwizzleDescriptor
```

<br />

*** ** * ** ***

An extension chained to a texture view descriptor to define a custom component swizzle. This allows remapping or forcing specific values for the R, G, B, and A channels when accessing the texture view.

## Summary

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

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureComponentSwizzleDescriptor#GPUTextureComponentSwizzleDescriptor(androidx.webgpu.GPUTextureComponentSwizzle)( swizzle: https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureComponentSwizzle )` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureComponentSwizzle` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureComponentSwizzleDescriptor#swizzle()` The swizzle configuration specifying the source component or constant value for each channel of the texture view. |

## Public constructors

### GPUTextureComponentSwizzleDescriptor

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

```
GPUTextureComponentSwizzleDescriptor(
    swizzle: GPUTextureComponentSwizzle = GPUTextureComponentSwizzle()
)
```

## Public properties

### swizzle

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

```
var swizzle: GPUTextureComponentSwizzle
```

The swizzle configuration specifying the source component or constant value for each channel of the texture view.