<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIKernel/kernelNames(fromMetalLibraryData:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Core Image"
    ],
    "preciseIdentifier" : "c:objc(cs)CIKernel(cm)kernelNamesFromMetalLibraryData:"
  },
  "title" : "kernelNames(fromMetalLibraryData:)"
}
-->

# kernelNames(fromMetalLibraryData:)

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

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

## Parameters

`data`

Contents of the Metal library.

## Return Value

An Array of strings containing the names of the kernels.

## Discussion

---

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)