         self._videoBufferOutput = self.createVideoBufferOutput(withPixelBuffer: pixelBuffer, orientation: .downMirrored)
         CVPixelBufferUnlockBaseAddress(pixelBuffer, CVPixelBufferLockFlags.readOnly)
     }
-
+    
+    #endif
+    
 }
-
-#endif

        let options : [CIContextOption : Any] = [.workingColorSpace : CGColorSpaceCreateDeviceRGB(),
                                                 .useSoftwareRenderer : NSNumber(booleanLiteral: false)]
        self._ciContext = CIContext(mtlDevice: device, options: options)

        // setup pixel buffer rendering
        #if USE_ARKIT
        self._renderer = SCNRenderer(device: device, options: nil)

#endif

/// NextLevelBufferRenderer, provides the ability to render/record SceneKit frames
@available(iOS 11.0, *)
public class NextLevelBufferRenderer {
    
    // MARK: - properties
    
    /// Rendered video buffer output (using to write video file)
