It seems custom CIFilter does not work as Core Animation CALayer compositingFilter in recent macOS. It used to be worked fine but under macOS 12.5.1, custom CIFilter outputImage is never called.
Are there any working example code out there which demonstrate the use of custom CIFilter as the CALayer compositingFilter?