<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalPerformanceShaders",
  "identifier" : "/documentation/MetalPerformanceShaders/MPSCNNUpsamplingNearestNode",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Metal Performance Shaders"
    ],
    "preciseIdentifier" : "c:objc(cs)MPSCNNUpsamplingNearestNode"
  },
  "title" : "MPSCNNUpsamplingNearestNode"
}
-->

# MPSCNNUpsamplingNearestNode

A representation of a nearest spatial upsampling filter.

```
class MPSCNNUpsamplingNearestNode
```

## Topics

### Initializers

[`-  initWithSource:integerScaleFactorX:integerScaleFactorY:`](/documentation/MetalPerformanceShaders/MPSCNNUpsamplingNearestNode/init(source:integerScaleFactorX:integerScaleFactorY:))

### Instance Properties

[`scaleFactorX`](/documentation/MetalPerformanceShaders/MPSCNNUpsamplingNearestNode/scaleFactorX)

[`scaleFactorY`](/documentation/MetalPerformanceShaders/MPSCNNUpsamplingNearestNode/scaleFactorY)

### Type Methods

[`+  nodeWithSource:integerScaleFactorX:integerScaleFactorY:`](/documentation/MetalPerformanceShaders/MPSCNNUpsamplingNearestNode/nodeWithSource:integerScaleFactorX:integerScaleFactorY:)

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`CVarArg`](/documentation/Swift/CVarArg)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

### Inherits From

[`MPSNNFilterNode`](/documentation/MetalPerformanceShaders/MPSNNFilterNode)

---

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)