# TextureUsage

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

*** ** * ** ***


```
public final class TextureUsage
```

<br />

*** ** * ** ***

Defines the valid usages for a texture.

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/TextureUsage#CopyDst() = 2` Allows the texture to be the destination of a copy operation. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/TextureUsage#CopySrc() = 1` Allows the texture to be the source of a copy operation. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/TextureUsage#None() = 0` No usage is specified. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/TextureUsage#RenderAttachment() = 16` Allows the texture to be used as a render attachment. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/TextureUsage#StorageBinding() = 8` Allows the texture to be used as a storage texture. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/TextureUsage#TextureBinding() = 4` Allows the texture to be sampled in a shader. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/TextureUsage#TransientAttachment() = 32` |

| ### Public methods |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/webgpu/TextureUsage#toString(kotlin.Int)(int value)` |

## Constants

### CopyDst

```
public static final int CopyDst = 2
```

Allows the texture to be the destination of a copy operation.

### CopySrc

```
public static final int CopySrc = 1
```

Allows the texture to be the source of a copy operation.

### None

```
public static final int None = 0
```

No usage is specified.

### RenderAttachment

```
public static final int RenderAttachment = 16
```

Allows the texture to be used as a render attachment.

### StorageBinding

```
public static final int StorageBinding = 8
```

Allows the texture to be used as a storage texture.

### TextureBinding

```
public static final int TextureBinding = 4
```

Allows the texture to be sampled in a shader.

### TransientAttachment

```
public static final int TransientAttachment = 32
```

## Public methods

### toString

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

```
public static final @NonNull String toString(int value)
```