mpsdeviceprovider-p(3) mojave man page | unix.com

Man Page: mpsdeviceprovider-p

Operating Environment: mojave

Section: 3

<MPSDeviceProvider>(3)					 MetalPerformanceShaders.framework				    <MPSDeviceProvider>(3)

NAME
<MPSDeviceProvider>
SYNOPSIS
#import <MPSCoreTypes.h> Inherited by MPSKeyedUnarchiver. Instance Methods (id< MTLDevice >) - mpsMTLDevice Detailed Description A way of extending a NSCoder to enable the setting of MTLDevice for unarchived objects When a object is initialized by a NSCoder, it calls -initWithCoder:, which is missing the necessary MTLDevice to correctly initialize the MPSKernel, or MPSNNGraph. If the coder does not conform to MPSDeviceProvider, the system default device will be used. If you would like to specify which device to use, subclass the NSCoder (NSKeyedUnarchiver, etc.) to conform to MPSDeviceProvider so that the device can be gotten from the NSCoder. See MPSKeyedUnarchiver for one implementation of this protocol. It reads files prepared with the NSKeyedArchiver and allows you to set the MTLDevice that the unarchived objects use. Method Documentation - (id <MTLDevice>) mpsMTLDevice Return the device to use when making MPSKernel subclasses from the NSCoder Reimplemented in MPSKeyedUnarchiver. Author Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code. Version MetalPerformanceShaders-100 Thu Feb 8 2018 <MPSDeviceProvider>(3)
Related Man Pages
mpscnnpoolingmax(3) - mojave
mpscnnsoftmaxgradient(3) - mojave
mpsimageeuclideandistancetransform(3) - mojave
mpsimagelanczosscale(3) - mojave
mpsimagethresholdtozeroinverse(3) - mojave
Similar Topics in the Unix Linux Community
My first PERL incarnation... Audio Oscillograph
Controlling user input
Python 3.8.0rc1 released.