.TH "" 3 "Mon Jul 9 2018" "Version MetalPerformanceShaders-119.3" "MetalPerformanceShaders.framework" \" -*- nroff -*- .ad l .nh .SH NAME .SH SYNOPSIS .br .PP .PP \fC#import \fP .PP Inherited by \fBMPSKeyedUnarchiver\fP\&. .SS "Instance Methods" .in +1c .ti -1c .RI "(id< MTLDevice >) \- \fBmpsMTLDevice\fP" .br .in -1c .SH "Detailed Description" .PP \fBA\fP 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 \fBMPSKernel\fP, or \fBMPSNNGraph\fP\&. If the coder does not conform to \fBMPSDeviceProvider\fP, 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 \fBMPSDeviceProvider\fP so that the device can be gotten from the NSCoder\&. .PP See \fBMPSKeyedUnarchiver\fP 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\&. .SH "Method Documentation" .PP .SS "\- (id ) mpsMTLDevice " Return the device to use when making \fBMPSKernel\fP subclasses from the NSCoder .PP Reimplemented in \fBMPSKeyedUnarchiver\fP\&. .SH "Author" .PP Generated automatically by Doxygen for MetalPerformanceShaders\&.framework from the source code\&.