---
title: MPSCNNUpsamplingNearestNode
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpscnnupsamplingnearestnode
---

# MPSCNNUpsamplingNearestNode

A representation of a nearest spatial upsampling filter.

## Declaration

```swift
class MPSCNNUpsamplingNearestNode
```

## Topics

### Initializers

- [init(source:integerScaleFactorX:integerScaleFactorY:)](metalperformanceshaders/mpscnnupsamplingnearestnode/init(source:integerscalefactorx:integerscalefactory:).md)

### Instance Properties

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

## Relationships

### Inherits From

- [MPSNNFilterNode](metalperformanceshaders/mpsnnfilternode.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Upsampling Layer Nodes

- [MPSCNNUpsamplingBilinearNode](metalperformanceshaders/mpscnnupsamplingbilinearnode.md)
- [MPSCNNUpsamplingBilinearGradientNode](metalperformanceshaders/mpscnnupsamplingbilineargradientnode.md)
- [MPSCNNUpsamplingNearestGradientNode](metalperformanceshaders/mpscnnupsamplingnearestgradientnode.md)
