         
         self._arView = view
         self._presentationFrame = view.bounds
-
+        
         #if !( targetEnvironment(simulator) )
         self._device = view.device
         self._renderer = SCNRenderer(device: view.device, options: nil)
         self._renderer?.scene = view.scene
+        self._renderer?.autoenablesDefaultLighting = self.autoenablesDefaultLighting
         #endif
         
+        self._commandQueue = view.device?.makeCommandQueue()
+        self._renderPassDescriptor = MTLRenderPassDescriptor()
     }
     #endif
     

        #if !USE_ARKIT
        fatalError("USE_ARKIT was not enabled for buffer renderering")
        #endif

        guard let arView = self._arView,
            let pixelBuffer = arView.session.currentFrame?.capturedImage,
            let pointOfView = arView.pointOfView,


@available(iOS 11.0, *)
extension NextLevelBufferRenderer {
    
    private func createPixelBufferOutput(withPixelBuffer pixelBuffer: CVPixelBuffer,
                                         orientation: CGImagePropertyOrientation,
                                         pixelBufferPool: CVPixelBufferPool,
