<!--
{
  "availability" : [
    "macOS: 10.7.0 - 10.15.0"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIPlugIn/load(_:allowExecutableCode:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Core Image"
    ],
    "preciseIdentifier" : "c:objc(cs)CIPlugIn(cm)loadPlugIn:allowExecutableCode:"
  },
  "title" : "load(_:allowExecutableCode:)"
}
-->

# load(_:allowExecutableCode:)

Loads filters from an image unit that have the appropriate executable status.

```
class func load(_ url: URL!, allowExecutableCode: Bool)
```

## Parameters

`url`

The location of the image unit to load.

`allowExecutableCode`

`true` to load all filters from the image unit, or `false` to load only those filters without CPU executable code.

## Discussion

You need to call this method only once to load a specific image unit. The behavior of this method is not defined for multiple calls for the same image unit. If you pass `false` for the `allowExecutableCode` parameter, Core Image will load only pure kernel filters that run entirely on the GPU, ignoring filters implemented using compiled Objective-C code.

---

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)