public MyCustomFilter(CustomerFilterType type) { Type = type; #if XAMCORE_2_0 kernel = CIKernel.FromProgramSingle(GetKernelString()); #else kernel = CIKernel.FromProgram(GetKernelString()); #endif }
public MyCustomFilter(CustomerFilterType type) { Type = type; #if XAMCORE_2_0 kernel = CIKernel.FromProgramSingle(GetKernelString()); #else kernel = CIKernel.FromProgram(GetKernelString()); #endif Assert.IsNotNull(kernel, $"Kernel: {Type}"); }