---
title: "load(_:allowExecutableCode:)"
framework: Core Image
role: symbol
role_heading: Type Method
platforms: [macOS 10.7+]
path: "coreimage/ciplugin/load(_:allowexecutablecode:)"
---

# load(_:allowExecutableCode:)

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

## Declaration

```swift
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

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.

## See Also

### Deprecated

- [loadAllPlugIns()](coreimage/ciplugin/loadallplugins().md)
