Mixing 2D and 3D

I think that you want to do “post-processing”. You render to another buffer instead to the back buffer. It is tricky to implement. Check also Effects on cpp targets - #2 by dmitryhryppa