Enable writing OpenCL operations and add first gpuified operation gimp:set-alpha
This takes the basic OpenCL writing framework from GEGL and plugs it into GIMP. OpenCL code can now rest in a separate .cl file which gets automatically converted into a header file accessible at app/operations/opencl/<op-name>.cl.h. All that is left to do for the writer is to write the _cl_process function and register it.
The gimp:set-alpha is very basic and simple to implement, so that was the lowest-hanging fruit I could think of to kick this off.
If you want to test and are not sure what uses this operation, you can trigger it with these steps
- Create layer
- Add alpha channel
- Draw some strokes
- Colours -> Colour to Alpha
- Layer -> Add Layer Masks -> Transfer layer's alpha channel