load(_:allowExecutableCode:)
Loads filters from an image unit that have the appropriate executable status.
Declaration
class func load(_ url: URL!, allowExecutableCode: Bool)Parameters
- url:
The location of the image unit to load.
- allowExecutableCode:
trueto load all filters from the image unit, orfalseto 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.