---
title: languageVersion
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlcompileoptions/languageversion
---

# languageVersion

The language version for interpreting the library source code.

## Declaration

```swift
var languageVersion: MTLLanguageVersion { get set }
```

## Discussion

Discussion By default, Metal uses the most recent language version.

## See Also

### Related Documentation

- [MTLLanguageVersion](metal/mtllanguageversion.md)

### Configuring the compiler options

- [enableLogging](metal/mtlcompileoptions/enablelogging.md)
- [mathMode](metal/mtlcompileoptions/mathmode.md)
- [mathFloatingPointFunctions](metal/mtlcompileoptions/mathfloatingpointfunctions.md)
- [preserveInvariance](metal/mtlcompileoptions/preserveinvariance.md)
- [preprocessorMacros](metal/mtlcompileoptions/preprocessormacros.md)
- [optimizationLevel](metal/mtlcompileoptions/optimizationlevel.md)
- [libraries](metal/mtlcompileoptions/libraries.md)
- [fastMathEnabled](metal/mtlcompileoptions/fastmathenabled.md)
