I am creating ciContext using the following code.
_ciContext = CIContext(mtlDevice: metalDevice, options: [CIContextOption.useSoftwareRenderer: false])