#import #import #import #include API_AVAILABLE(ios(11.0), macos(10.13)) @interface MetalContext : NSObject @property(nonatomic, strong, readonly) id device; @property(nonatomic, strong, readonly) id commandQueue; @property(nonatomic, strong, readonly) id library; + (instancetype)sharedInstance; - (BOOL)available; - (id)pipelineState:(const std::string&)kernel; - (id)specializedPipelineState:(const std::string&)kernel Constants:(NSArray*) constants; - (id)emptyMTLBuffer:(int64_t) size; @end