---
title: MDLCheckerboardTexture
framework: modelio
role: symbol
role_heading: Class
path: modelio/mdlcheckerboardtexture
---

# MDLCheckerboardTexture

A generator of texel data that creates a checkerboard pattern with two specified colors.

## Declaration

```swift
class MDLCheckerboardTexture
```

## Overview

Overview Like other procedural MDLTexture subclasses, the MDLCheckerboardTexture class generates texel data only when that data is first referenced, and then caches it for future use.

## Topics

### Creating a Checkerboard Texture

- [init(divisions:name:dimensions:channelCount:channelEncoding:color1:color2:)](modelio/mdlcheckerboardtexture/init(divisions:name:dimensions:channelcount:channelencoding:color1:color2:).md)

### Configuring the Checkerboard Pattern

- [color1](modelio/mdlcheckerboardtexture/color1.md)
- [color2](modelio/mdlcheckerboardtexture/color2.md)
- [divisions](modelio/mdlcheckerboardtexture/divisions.md)

## Relationships

### Inherits From

- [MDLTexture](modelio/mdltexture.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [MDLNamed](modelio/mdlnamed.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Textures

- [MDLTexture](modelio/mdltexture.md)
- [MDLColorSwatchTexture](modelio/mdlcolorswatchtexture.md)
- [MDLNoiseTexture](modelio/mdlnoisetexture.md)
- [MDLNormalMapTexture](modelio/mdlnormalmaptexture.md)
- [MDLSkyCubeTexture](modelio/mdlskycubetexture.md)
- [MDLURLTexture](modelio/mdlurltexture.md)
- [MDLTextureFilter](modelio/mdltexturefilter.md)
- [MDLTextureSampler](modelio/mdltexturesampler.md)
