# TextureSampler.WrapMode

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

*** ** * ** ***


```
public final class TextureSampler.WrapMode
```

<br />

*** ** * ** ***

Defines the constants for texture wrap modes.

## Summary

| ### Public fields |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/TextureSampler.WrapMode` | `https://developer.android.com/reference/androidx/xr/scenecore/TextureSampler.WrapMode#CLAMP_TO_EDGE()` The edge of the texture extends to infinity. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/TextureSampler.WrapMode` | `https://developer.android.com/reference/androidx/xr/scenecore/TextureSampler.WrapMode#MIRRORED_REPEAT()` The texture infinitely repeats and mirrors in the wrap direction. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/TextureSampler.WrapMode` | `https://developer.android.com/reference/androidx/xr/scenecore/TextureSampler.WrapMode#REPEAT()` The texture infinitely repeats in the wrap direction. |

| ### Public methods |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/xr/scenecore/TextureSampler.WrapMode#toString()()` |

## Public fields

### CLAMP_TO_EDGE

```
public static final @NonNull TextureSampler.WrapMode CLAMP_TO_EDGE
```

The edge of the texture extends to infinity.

### MIRRORED_REPEAT

```
public static final @NonNull TextureSampler.WrapMode MIRRORED_REPEAT
```

The texture infinitely repeats and mirrors in the wrap direction.

### REPEAT

```
public static final @NonNull TextureSampler.WrapMode REPEAT
```

The texture infinitely repeats in the wrap direction.

## Public methods

### toString

```
public @NonNull String toString()
```