---
title: compileToBinary
framework: metal
role: symbol
role_heading: Type Property
path: metal/mtlfunctionoptions/compiletobinary
---

# compileToBinary

An option that instructs the compiler to generate a binary format for dynamic linking.

## Declaration

```swift
static var compileToBinary: MTLFunctionOptions { get }
```

## See Also

### Function compilation options

- [failOnBinaryArchiveMiss](metal/mtlfunctionoptions/failonbinaryarchivemiss.md)
- [pipelineIndependent](metal/mtlfunctionoptions/pipelineindependent.md)
- [storeFunctionInMetalPipelinesScript](metal/mtlfunctionoptions/storefunctioninmetalpipelinesscript.md)
- [storeFunctionInMetalScript](metal/mtlfunctionoptions/storefunctioninmetalscript.md)
