I am considering implementing a spine renderer for Kha, and this requires being able to draw some textures with a specific blending (like additive blending).
By reading code in kha repository, it seems that I need to create multiple pipelines : one for each kind of blending. From what I understood, I need to :
1/ Create (and compile) 1 pipeline instance per kind of blending I need to use
2/ When the next element I want to draw uses a blending different to the previous element, assign the pipelline related to the blending I want to the graphics object (g4) and then draw. Do this each time the blending needs to be changed.
Would this work? And is this the way to go with Kha? OR is there a better alternative or any code example achieving similar things?