...
 
Commits (3)
......@@ -17,11 +17,6 @@ let task4: Effect = { originalImage, depthMap in
// Find the kernel of interest.
// Use the kernel to process the images
if #available(iOS 13, *) {
let filter = try! CIColorKernel(functionName: "task4", fromMetalLibraryData: metalLibraryData)
return filter.apply(extent: foreground.extent, arguments: [foreground, background])
} else {
let filter = try! CIBlendKernel(functionName: "task4", fromMetalLibraryData: metalLibraryData)
return filter.apply(foreground: foreground, background: background)
}
let filter = try! CIBlendKernel(functionName: "task4", fromMetalLibraryData: metalLibraryData)
return filter.apply(foreground: foreground, background: background)
}
This diff is collapsed.