# TextureViewDimension

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

*** ** * ** ***


```
class TextureViewDimension
```

<br />

*** ** * ** ***

Defines the dimensionality of a texture view.

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/TextureViewDimension#Cube() = 4` A cube map texture view. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/TextureViewDimension#CubeArray() = 5` A cube map array texture view. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/TextureViewDimension#Undefined() = 0` Indicates that no texture view dimension is specified. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/TextureViewDimension#_1D() = 1` A one-dimensional texture view. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/TextureViewDimension#_2D() = 2` A two-dimensional texture view. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/TextureViewDimension#_2DArray() = 3` A two-dimensional array texture view. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/TextureViewDimension#_3D() = 6` A three-dimensional texture view. |

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

## Constants

### Cube

```
const val Cube = 4: Int
```

A cube map texture view.

### CubeArray

```
const val CubeArray = 5: Int
```

A cube map array texture view.

### Undefined

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

Indicates that no texture view dimension is specified.

### _1D

```
const val _1D = 1: Int
```

A one-dimensional texture view.

### _2D

```
const val _2D = 2: Int
```

A two-dimensional texture view.

### _2DArray

```
const val _2DArray = 3: Int
```

A two-dimensional array texture view.

### _3D

```
const val _3D = 6: Int
```

A three-dimensional texture view.

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