# GPUExtent3D

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

*** ** * ** ***


```
public final class GPUExtent3D
```

<br />

*** ** * ** ***

Defines a three-dimensional extent (width, height, depth/layers).

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/webgpu/GPUExtent3D.Builder` Builder for `https://developer.android.com/reference/androidx/webgpu/GPUExtent3D`. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/webgpu/GPUExtent3D#GPUExtent3D(kotlin.Int,kotlin.Int,kotlin.Int)(int width, int height, int depthOrArrayLayers)` |

| ### Public methods |
|---|---|
| `final int` | `https://developer.android.com/reference/androidx/webgpu/GPUExtent3D#getDepthOrArrayLayers()()` |
| `final int` | `https://developer.android.com/reference/androidx/webgpu/GPUExtent3D#getHeight()()` The height of the extent. |
| `final int` | `https://developer.android.com/reference/androidx/webgpu/GPUExtent3D#getWidth()()` The width of the extent. |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPUExtent3D#setDepthOrArrayLayers(kotlin.Int)(int value)` |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPUExtent3D#setHeight(kotlin.Int)(int value)` The height of the extent. |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPUExtent3D#setWidth(kotlin.Int)(int value)` The width of the extent. |

## Public constructors

### GPUExtent3D

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

```
public GPUExtent3D(int width, int height, int depthOrArrayLayers)
```

## Public methods

### getDepthOrArrayLayers

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

```
public final int getDepthOrArrayLayers()
```

### getHeight

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

```
public final int getHeight()
```

The height of the extent.

### getWidth

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

```
public final int getWidth()
```

The width of the extent.

### setDepthOrArrayLayers

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

```
public final void setDepthOrArrayLayers(int value)
```

### setHeight

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

```
public final void setHeight(int value)
```

The height of the extent.

### setWidth

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

```
public final void setWidth(int value)
```

The width of the extent.