# TextureAspect

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

*** ** * ** ***


```
public final class TextureAspect
```

<br />

*** ** * ** ***

Specifies which aspect of a texture is being referenced.

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/TextureAspect#All() = 1` All aspects of the texture. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/TextureAspect#DepthOnly() = 3` The depth aspect of a depth-stencil texture. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/TextureAspect#StencilOnly() = 2` The stencil aspect of a depth-stencil texture. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/TextureAspect#Undefined() = 0` Indicates that no texture aspect is specified. |

| ### 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/TextureAspect#toString(kotlin.Int)(int value)` |

## Constants

### All

```
public static final int All = 1
```

All aspects of the texture.

### DepthOnly

```
public static final int DepthOnly = 3
```

The depth aspect of a depth-stencil texture.

### StencilOnly

```
public static final int StencilOnly = 2
```

The stencil aspect of a depth-stencil texture.

### Undefined

```
public static final int Undefined = 0
```

Indicates that no texture aspect is specified.

## 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)
```