<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTL4Compiler/makeBinaryFunction(descriptor:compilerTaskOptions:)-5o46e",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "s:So12MTL4CompilerP5MetalE18makeBinaryFunction10descriptor19compilerTaskOptionsSo0aeF0_pSo0aeF10DescriptorC_So0abiJ0CSgtKF"
  },
  "title" : "makeBinaryFunction(descriptor:compilerTaskOptions:)"
}
-->

# makeBinaryFunction(descriptor:compilerTaskOptions:)

Creates a new binary visible or intersection function synchronously.

```
func makeBinaryFunction(descriptor: MTL4BinaryFunctionDescriptor, compilerTaskOptions: MTL4CompilerTaskOptions? = nil) throws -> any MTL4BinaryFunction
```

## Parameters

`descriptor`

A binary function descriptor to use for creating the binary function.

`compilerTaskOptions`

A descriptor of the compilation itself, providing parameters that
influence execution of the compilation process.

## Return Value

a binary function upon success, otherwise this function throws.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)