---
title: MPSNDArrayUnaryGradientKernel
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpsndarrayunarygradientkernel
---

# MPSNDArrayUnaryGradientKernel

## Declaration

```swift
class MPSNDArrayUnaryGradientKernel
```

## Topics

### Initializers

- [init(coder:device:)](metalperformanceshaders/mpsndarrayunarygradientkernel/init(coder:device:).md)
- [init(device:)](metalperformanceshaders/mpsndarrayunarygradientkernel/init(device:).md)

### Instance Methods

- [encode(to:sourceArray:sourceGradient:gradientState:)](metalperformanceshaders/mpsndarrayunarygradientkernel/encode(to:sourcearray:sourcegradient:gradientstate:).md)
- [encode(to:sourceArray:sourceGradient:gradientState:destinationArray:)](metalperformanceshaders/mpsndarrayunarygradientkernel/encode(to:sourcearray:sourcegradient:gradientstate:destinationarray:).md)

## Relationships

### Inherits From

- [MPSNDArrayMultiaryGradientKernel](metalperformanceshaders/mpsndarraymultiarygradientkernel.md)

### Inherited By

- [MPSNDArrayStridedSliceGradient](metalperformanceshaders/mpsndarraystridedslicegradient.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)
