---
title: patchControlPointCount
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlfunction/patchcontrolpointcount
---

# patchControlPointCount

The number of patch control points in the post-tessellation vertex function.

## Declaration

```swift
var patchControlPointCount: Int { get }
```

## Discussion

Discussion This value is -1 if the number of patch control points wasn’t specified or if the function isn’t a post-tessellation vertex function.

## See Also

### Identifying the tessellation patch

- [patchType](metal/mtlfunction/patchtype.md)
- [MTLPatchType](metal/mtlpatchtype.md)
