# AddressMode

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

*** ** * ** ***


```
public final class AddressMode
```

<br />

*** ** * ** ***

Defines how texture coordinates outside the 0, 1 range are handled.

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/AddressMode#ClampToEdge() = 1` Clamps coordinates to the edge of the texture. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/AddressMode#MirrorRepeat() = 3` Repeats the texture, mirroring it at each integer boundary. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/AddressMode#Repeat() = 2` Repeats the texture in a tiling pattern. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/AddressMode#Undefined() = 0` Indicates that no address mode 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/AddressMode#toString(kotlin.Int)(int value)` |

## Constants

### ClampToEdge

```
public static final int ClampToEdge = 1
```

Clamps coordinates to the edge of the texture.

### MirrorRepeat

```
public static final int MirrorRepeat = 3
```

Repeats the texture, mirroring it at each integer boundary.

### Repeat

```
public static final int Repeat = 2
```

Repeats the texture in a tiling pattern.

### Undefined

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

Indicates that no address mode 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)
```