---
title: MTLMathMode.safe
framework: metal
role: symbol
role_heading: Case
path: metal/mtlmathmode/safe
---

# MTLMathMode.safe

An indicator of the mode the compiler uses to disable unsafe floating-point optimizations by preventing the compiler from making any transformations that could affect the results.

## Declaration

```swift
case safe
```

## See Also

### Modes

- [MTLMathMode.fast](metal/mtlmathmode/fast.md)
- [MTLMathMode.relaxed](metal/mtlmathmode/relaxed.md)
