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

*** ** * ** ***


```
class TextureAspect
```

<br />

*** ** * ** ***

Specifies which aspect of a texture is being referenced.

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/TextureAspect#All() = 1` All aspects of the texture. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/TextureAspect#DepthOnly() = 3` The depth aspect of a depth-stencil texture. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/TextureAspect#StencilOnly() = 2` The stencil aspect of a depth-stencil texture. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/TextureAspect#Undefined() = 0` Indicates that no texture aspect is specified. |

| ### Public companion functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/TextureAspect#toString(kotlin.Int)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |

## Constants

### All

```
const val All = 1: Int
```

All aspects of the texture.

### DepthOnly

```
const val DepthOnly = 3: Int
```

The depth aspect of a depth-stencil texture.

### StencilOnly

```
const val StencilOnly = 2: Int
```

The stencil aspect of a depth-stencil texture.

### Undefined

```
const val Undefined = 0: Int
```

Indicates that no texture aspect is specified.

## Public companion functions

### toString

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

```
fun toString(value: Int): String
```