---
title: "setTessellationFactorScale(_:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtlrendercommandencoder/settessellationfactorscale(_:)"
---

# setTessellationFactorScale(_:)

Configures the scale factor for per-patch tessellation factors.

## Declaration

```swift
func setTessellationFactorScale(_ scale: Float)
```

## Parameters

- `scale`: A positive, normal floating-point scale factor the render pass applies to the per-patch tessellation factors. The value of scale can’t be negative, infinite, equal to NaN (not a number), or a denormalized number.

## Discussion

Discussion The command converts scale to a half-precision floating-point value before it applies it to the per-patch tessellation factors (see setTessellationFactorBuffer(_:offset:instanceStride:)).

## See Also

### Configuring tessellation factors

- [setTessellationFactorBuffer(_:offset:instanceStride:)](metal/mtlrendercommandencoder/settessellationfactorbuffer(_:offset:instancestride:).md)
