---
title: MPSCNNUpsamplingGradient
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpscnnupsamplinggradient
---

# MPSCNNUpsamplingGradient

A gradient filter that upsamples an existing Metal Performance Shaders image.

## Declaration

```swift
class MPSCNNUpsamplingGradient
```

## Topics

### Instance Properties

- [scaleFactorX](metalperformanceshaders/mpscnnupsamplinggradient/scalefactorx.md)
- [scaleFactorY](metalperformanceshaders/mpscnnupsamplinggradient/scalefactory.md)

## Relationships

### Inherits From

- [MPSCNNGradientKernel](metalperformanceshaders/mpscnngradientkernel.md)

### Inherited By

- [MPSCNNUpsamplingBilinearGradient](metalperformanceshaders/mpscnnupsamplingbilineargradient.md)
- [MPSCNNUpsamplingNearestGradient](metalperformanceshaders/mpscnnupsamplingnearestgradient.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)

## See Also

### Upsampling Layers

- [MPSCNNUpsampling](metalperformanceshaders/mpscnnupsampling.md)
- [MPSCNNUpsamplingBilinear](metalperformanceshaders/mpscnnupsamplingbilinear.md)
- [MPSCNNUpsamplingNearest](metalperformanceshaders/mpscnnupsamplingnearest.md)
- [MPSCNNUpsamplingBilinearGradient](metalperformanceshaders/mpscnnupsamplingbilineargradient.md)
- [MPSCNNUpsamplingNearestGradient](metalperformanceshaders/mpscnnupsamplingnearestgradient.md)
