<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ModelIO",
  "identifier" : "/documentation/ModelIO/MDLCheckerboardTexture",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Model I/O"
    ],
    "preciseIdentifier" : "c:objc(cs)MDLCheckerboardTexture"
  },
  "title" : "MDLCheckerboardTexture"
}
-->

# MDLCheckerboardTexture

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

```
class MDLCheckerboardTexture
```

## Overview

Like other procedural [`MDLTexture`](/documentation/ModelIO/MDLTexture) subclasses, the [`MDLCheckerboardTexture`](/documentation/ModelIO/MDLCheckerboardTexture) class generates texel data only when that data is first referenced, and then caches it for future use.

## Topics

### Creating a Checkerboard Texture

[`-  initWithDivisions:name:dimensions:channelCount:channelEncoding:color1:color2:`](/documentation/ModelIO/MDLCheckerboardTexture/init(divisions:name:dimensions:channelCount:channelEncoding:color1:color2:))

Initializes a checkerboard texture with the specified colors and other properties.

### Configuring the Checkerboard Pattern

[`color1`](/documentation/ModelIO/MDLCheckerboardTexture/color1)

The color for half of the squares in the checkerboard pattern.

[`color2`](/documentation/ModelIO/MDLCheckerboardTexture/color2)

The color for the other half of the squares in the checkerboard pattern.

[`divisions`](/documentation/ModelIO/MDLCheckerboardTexture/divisions)

The number of squares along each dimension in the checkerboard pattern.

## Relationships

### Conforms To

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

[`MDLNamed`](/documentation/ModelIO/MDLNamed)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

### Inherits From

[`MDLTexture`](/documentation/ModelIO/MDLTexture)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)