I have been writing a custom raytracing renderer in C++ and I would like to natively integrate it with Blender 2.8 as a custom renderer. I know that this is possible, as I have seen many projects (for example, SORT) do this. However, I am completely new to Blender plugin development and am at a loss for how to even approach writing such a plugin.
I vaguely know that I'll need to re-write all of the material nodes and that I'll need to somehow pipe data back and forth between Blender and my renderer. Other than this, I am completely lost.
The closest threads that I can find regarding this topic are this and this, neither of which is particularly relevant to what I'm trying to accomplish as far as I can tell.
Could someone push me in the right direction? If there is a minimal example then I could probably take it from there.