---
title: MTLTessellationFactorStepFunction.perPatch
framework: metal
role: symbol
role_heading: Case
path: metal/mtltessellationfactorstepfunction/perpatch
---

# MTLTessellationFactorStepFunction.perPatch

A per-patch step function. For all instances, the tessellation factor for all patches in a patch draw call is at the offset + (drawPatchIndex * tessellationFactorStride) location in the tessellation factor buffer.

## Declaration

```swift
case perPatch
```

## See Also

### Factor step functions

- [MTLTessellationFactorStepFunction.constant](metal/mtltessellationfactorstepfunction/constant.md)
- [MTLTessellationFactorStepFunction.perInstance](metal/mtltessellationfactorstepfunction/perinstance.md)
- [MTLTessellationFactorStepFunction.perPatchAndPerInstance](metal/mtltessellationfactorstepfunction/perpatchandperinstance.md)
