MPSCNNUpsamplingNearestNode(3)

NAME
MPSCNNUpsamplingNearestNode

SYNOPSIS

#import <MPSNNGraphNodes.h>

Inherits MPSNNFilterNode.

  Instance Methods
(nonnull instancetype) - initWithSource:integerScaleFactorX:integerScaleFactorY:

  Class Methods
(nonnull instancetype) + nodeWithSource:integerScaleFactorX:integerScaleFactorY:

  Properties
double scaleFactorX
double scaleFactorY

Detailed Description

Node representing a MPSCNNUpsamplingNearest kernel

Method Documentation

  - (nonnull instancetype) initWithSource: (MPSNNImageNode *__nonnull) sourceNode(NSUInteger) integerScaleFactorX(NSUInteger) integerScaleFactorY
Init a node representing a MPSCNNUpsamplingNearest kernel

Parameters:
    sourceNode The MPSNNImageNode representing the source MPSImage for the filter
    integerScaleFactorX The upsampling factor for the x dimension.
    integerScaleFactorY The upsampling factor for the y dimension.

Returns:
    A new MPSNNFilter node for a MPSCNNUpsamplingNearest kernel.

  + (nonnull instancetype) nodeWithSource: (MPSNNImageNode *__nonnull) sourceNode(NSUInteger) integerScaleFactorX(NSUInteger) integerScaleFactorY
Convenience initializer for an autoreleased MPSCNNUpsamplingNearest nodes

Parameters:
    sourceNode The MPSNNImageNode representing the source MPSImage for the filter
    integerScaleFactorX The upsampling factor for the x dimension.
    integerScaleFactorY The upsampling factor for the y dimension.

Returns:
    A new MPSNNFilter node for a MPSCNNUpsamplingNearest kernel.

Property Documentation

  - (double) scaleFactorX [read], [nonatomic], [assign]

  - (double) scaleFactorY [read], [nonatomic], [assign]

Author

Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code.