<!--
{
  "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/divisions",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Model I/O"
    ],
    "preciseIdentifier" : "c:objc(cs)MDLCheckerboardTexture(py)divisions"
  },
  "title" : "divisions"
}
-->

# divisions

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

```
var divisions: Float { get set }
```

## Discussion

For example, a value of 2 creates a checkerboard pattern of four squares (a 2 x 2 grid), where the top-left and bottom-right squares use the [`color1`](/documentation/ModelIO/MDLCheckerboardTexture/color1) color and the other two squares use the [`color2`](/documentation/ModelIO/MDLCheckerboardTexture/color2) color. A value of 4 creates a pattern of 16 squares (a 4 x 4 grid), and so on.

Changing the [`divisions`](/documentation/ModelIO/MDLCheckerboardTexture/divisions), [`color1`](/documentation/ModelIO/MDLCheckerboardTexture/color1), or [`color2`](/documentation/ModelIO/MDLCheckerboardTexture/color2) properties invalidates the cache, causing Model I/O to regenerate texel data the next time it is needed.

---

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)