Full error is "Failed to render 921600 pixels because a CIKernel's ROI function did not allow tiling." every time I try to transform a ciImage with a translation.
Code is simply:
var flippedGradient = gradient.transformed(by:CGAffineTransform(scaleX: -1, y: 1))
flippedGradient = gradient.transformed(by:CGAffineTransform(translationX: flippedGradient.extent.width, y: 0)) // causes error
// mask hue 2 with gradient with transparent background
let alphaMaskBlend2 = CIFilter(name: "CIBlendWithAlphaMask",
withInputParameters: [kCIInputImageKey: hue2,
kCIInputBackgroundImageKey: transBGCI,
kCIInputMaskImageKey:flippedGradient])?.outputImage
Doing a translation causes the error and makes me entire screen gray instead of rendering the image otherwise normally.
Related thread, with no resolutions related to how I would be able to translate my ciImage: iOS 10: CIKernel's ROI function did not allow tiling