MPSCNNUpsamplingNearestGradient(3) MetalPerformanceShaders.framework MPSCNNUpsamplingNearestGradient(3)

MPSCNNUpsamplingNearestGradient

#import <MPSCNNUpsampling.h>

Inherits MPSCNNUpsamplingGradient.


(nonnull instancetype) - initWithDevice:integerScaleFactorX:integerScaleFactorY:

This depends on Metal.framework. Specifies the nearest spatial downsampling filter.

- (nonnull instancetype) initWithDevice: (nonnull id< MTLDevice >) device(NSUInteger) integerScaleFactorX(NSUInteger) integerScaleFactorY

Initialize the nearest spatial upsampling filter.

Parameters:

device The device the filter will run on.
integerScaleFactorX The downsampling factor for the x dimension.
integerScaleFactorY The downsampling factor for the y dimension.

Returns:

A valid MPSCNNUpsamplingNearestGradient object or nil, if failure.

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

Mon Jul 9 2018 Version MetalPerformanceShaders-119.3