<!--
{
  "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" : "Metal",
  "identifier" : "/documentation/Metal/MTLFunctionDescriptor/specializedName",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(cs)MTLFunctionDescriptor(py)specializedName"
  },
  "title" : "specializedName"
}
-->

# specializedName

A new name for the created function object.

```
var specializedName: String? { get set }
```

## Discussion

The default value is `nil`. If you specify a value for this property, Metal creates the new [`MTLFunction`](/documentation/Metal/MTLFunction) object with the new name. Use this property if you want to specialize a function with multiple variants and give each a distinct name.

---

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)