<!--
{
  "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/MTLTessellationFactorStepFunction",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:@E@MTLTessellationFactorStepFunction"
  },
  "title" : "MTLTessellationFactorStepFunction"
}
-->

# MTLTessellationFactorStepFunction

Options for specifying the step function that determines the tessellation factors for a patch from the tessellation factor buffer.

```
enum MTLTessellationFactorStepFunction
```

## Topics

### Factor step functions

[`MTLTessellationFactorStepFunction.constant`](/documentation/Metal/MTLTessellationFactorStepFunction/constant)

A constant step function. For all instances, the tessellation factor for all patches in a patch draw call is at the `offset` location in the tessellation factor buffer.

[`MTLTessellationFactorStepFunction.perPatch`](/documentation/Metal/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.

[`MTLTessellationFactorStepFunction.perInstance`](/documentation/Metal/MTLTessellationFactorStepFunction/perInstance)

A per-instance step function. For a given instance ID, the tessellation factor for a patch in a patch draw call is at the `offset + (instanceID * instanceStride)` location in the tessellation factor buffer.

[`MTLTessellationFactorStepFunction.perPatchAndPerInstance`](/documentation/Metal/MTLTessellationFactorStepFunction/perPatchAndPerInstance)

A per-patch and per-instance step function. For a given instance ID, the tessellation factor for a patch in a patch draw call is at the `offset + (drawPatchIndex * tessellationFactorStride + instanceID * instanceStride)` location in the tessellation factor buffer.



---

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)