---
title: "makeKernels(source:)"
framework: coreimage
role: symbol
role_heading: Type Method
path: "coreimage/cikernel/makekernels(source:)"
---

# makeKernels(source:)

Creates and returns and array of  CIKernel objects.

## Declaration

```swift
class func makeKernels(source string: String) -> [CIKernel]?
```

## Parameters

- `string`: A program in the Core Image Kernel Language that contains one or more routines, each of which is marked using the kernel keyword.

## Return Value

Return Value An array of  CIKernel objects. The array contains one CIKernel objects for each kernel routine in the supplied string. Each object in the array can be of class CIKernel, CIColorKernel, or CIWarpKernel depending on the corresponding routine specified in the Core Image Kernel Language source code string.

## Discussion

Discussion The Core Image Kernel Language is a dialect of the OpenGL Shading Language. See Core Image Kernel Language Reference and Core Image Programming Guide for more details.

## See Also

### Deprecated

- [init(source:)](coreimage/cikernel/init(source:).md)
