         guard let device = SNTrimController.device,
               let queue = SNTrimController.queue,
               let function = SNTrimController.function,
-              let pipeline = SNTrimController.pipeline else {
+              let pipeline = SNTrimController.pipeline,
+              let dataBuffer = self.dataBuffer else {
             print("SNTrim No Metal. User CPU")
             return updateMaskColorCPU(color, fPlus: fPlus)
         }

    @IBOutlet var segment:UISegmentedControl!
    @IBOutlet var thumbImage:UIImageView!
    
    var image:UIImage!
    var delegate:SNTrimControllerDelegate!
    
    // Metal

        }
        return nil
    }()
    var dataBuffer:MTLBuffer?
    
    private let borderView:UIView = {
        let borderView = UIView()
