---
title: maxTessellationFactor
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlrenderpipelinedescriptor/maxtessellationfactor
---

# maxTessellationFactor

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

## Declaration

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

## Discussion

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 property: For the MTLTessellationPartitionMode.pow2 partitioning mode, the value needs to be a power of two. For the MTLTessellationPartitionMode.integer partitioning mode, the value can be an even or odd number. For the MTLTessellationPartitionMode.fractionalOdd or MTLTessellationPartitionMode.fractionalEven partitioning mode, the value needs to be an even number.

## See Also

### Specifying tessellation state

- [isTessellationFactorScaleEnabled](metal/mtlrenderpipelinedescriptor/istessellationfactorscaleenabled.md)
- [tessellationFactorFormat](metal/mtlrenderpipelinedescriptor/tessellationfactorformat.md)
- [tessellationControlPointIndexType](metal/mtlrenderpipelinedescriptor/tessellationcontrolpointindextype.md)
- [tessellationFactorStepFunction](metal/mtlrenderpipelinedescriptor/tessellationfactorstepfunction.md)
- [tessellationOutputWindingOrder](metal/mtlrenderpipelinedescriptor/tessellationoutputwindingorder.md)
- [tessellationPartitionMode](metal/mtlrenderpipelinedescriptor/tessellationpartitionmode.md)
- [MTLTessellationFactorFormat](metal/mtltessellationfactorformat.md)
- [MTLTessellationControlPointIndexType](metal/mtltessellationcontrolpointindextype.md)
- [MTLTessellationFactorStepFunction](metal/mtltessellationfactorstepfunction.md)
- [MTLTessellationPartitionMode](metal/mtltessellationpartitionmode.md)
