---
title: SCNWrapMode
framework: scenekit
role: symbol
role_heading: Enumeration
path: scenekit/scnwrapmode
---

# SCNWrapMode

Modes to apply to texture wrapping, used by the wrapT and wrapS properties.

## Declaration

```swift
enum SCNWrapMode
```

## Overview

Overview Wrapping modes determine texture mapping behavior for cases where a material’s texture coordinates extend outside the range from 0.0 to 1.0. For example, if you use the contentsTransform property to shrink a texture relative to the surface of a geometry, you use the wrap mode properties to determine whether the texture repeats across the surface. The figure below shows the effect of each wrapping mode on an otherwise identical material.

## Topics

### Constants

- [SCNWrapMode.clamp](scenekit/scnwrapmode/clamp.md)
- [SCNWrapMode.repeat](scenekit/scnwrapmode/repeat.md)
- [SCNWrapMode.clampToBorder](scenekit/scnwrapmode/clamptoborder.md)
- [SCNWrapMode.mirror](scenekit/scnwrapmode/mirror.md)
- [SCNClamp](scenekit/scnclamp.md)
- [SCNRepeat](scenekit/scnrepeat.md)
- [SCNClampToBorder](scenekit/scnclamptoborder.md)
- [SCNMirror](scenekit/scnmirror.md)

### Initializers

- [init(rawValue:)](scenekit/scnwrapmode/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Configuring Texture Mapping Attributes

- [contentsTransform](scenekit/scnmaterialproperty/contentstransform.md)
- [wrapS](scenekit/scnmaterialproperty/wraps.md)
- [wrapT](scenekit/scnmaterialproperty/wrapt.md)
- [minificationFilter](scenekit/scnmaterialproperty/minificationfilter.md)
- [magnificationFilter](scenekit/scnmaterialproperty/magnificationfilter.md)
- [mipFilter](scenekit/scnmaterialproperty/mipfilter.md)
- [SCNFilterMode](scenekit/scnfiltermode.md)
- [maxAnisotropy](scenekit/scnmaterialproperty/maxanisotropy.md)
- [mappingChannel](scenekit/scnmaterialproperty/mappingchannel.md)
- [borderColor](scenekit/scnmaterialproperty/bordercolor.md)
