<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLRenderPipelineDescriptor/maxTessellationFactor",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(cs)MTLRenderPipelineDescriptor(py)maxTessellationFactor"
  },
  "title" : "maxTessellationFactor"
}
-->

# maxTessellationFactor

The maximum tessellation factor that the tessellator uses when tessellating patches.

```
var maxTessellationFactor: Int { get set }
```

## Discussion

The default value is `16` and the maximum value is `64`. Any value in between needs to be set according to the partitioning mode specified by the [`tessellationPartitionMode`](/documentation/Metal/MTLRenderPipelineDescriptor/tessellationPartitionMode) property:

- For the [`MTLTessellationPartitionMode.pow2`](/documentation/Metal/MTLTessellationPartitionMode/pow2) partitioning mode, the value needs to be a power of two.
- For the [`MTLTessellationPartitionMode.integer`](/documentation/Metal/MTLTessellationPartitionMode/integer) partitioning mode, the value can be an even or odd number.
- For the [`MTLTessellationPartitionMode.fractionalOdd`](/documentation/Metal/MTLTessellationPartitionMode/fractionalOdd) or [`MTLTessellationPartitionMode.fractionalEven`](/documentation/Metal/MTLTessellationPartitionMode/fractionalEven) partitioning mode, the value needs to be an even number.

---

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)