---
title: "kernelNames(fromMetalLibraryData:)"
framework: coreimage
role: symbol
role_heading: Type Method
path: "coreimage/cikernel/kernelnames(frommetallibrarydata:)"
---

# kernelNames(fromMetalLibraryData:)

Return an array of strings containing the names of all of the kernels contained in the Metal library.

## Declaration

```swift
class func kernelNames(fromMetalLibraryData data: Data) -> [String]
```

## Parameters

- `data`: Contents of the Metal library.

## Return Value

Return Value An Array of strings containing the names of the kernels.

## See Also

### Creating a Kernel Using Metal Shading Language

- [init(functionName:fromMetalLibraryData:)](coreimage/cikernel/init(functionname:frommetallibrarydata:).md)
- [init(functionName:fromMetalLibraryData:outputPixelFormat:)](coreimage/cikernel/init(functionname:frommetallibrarydata:outputpixelformat:).md)
- [kernels(withMetalString:)](coreimage/cikernel/kernels(withmetalstring:).md)
