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

*** ** * ** ***


```
class AddressMode
```

<br />

*** ** * ** ***

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

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/AddressMode#ClampToEdge() = 1` Clamps coordinates to the edge of the texture. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/AddressMode#MirrorRepeat() = 3` Repeats the texture, mirroring it at each integer boundary. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/AddressMode#Repeat() = 2` Repeats the texture in a tiling pattern. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/AddressMode#Undefined() = 0` Indicates that no address mode is specified. |

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

## Constants

### ClampToEdge

```
const val ClampToEdge = 1: Int
```

Clamps coordinates to the edge of the texture.

### MirrorRepeat

```
const val MirrorRepeat = 3: Int
```

Repeats the texture, mirroring it at each integer boundary.

### Repeat

```
const val Repeat = 2: Int
```

Repeats the texture in a tiling pattern.

### Undefined

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

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