What would be a solution for cases when you need to render some 3D scene (using OpenGL) inside a compose widget? I've seen lwjgl integration example, it was very helpful with understanding how to use CfD in opengl applications and I plan to use it in my solution. However, I need to somehow get callback every frame of compose rendering (from Skia?) when my specific widget is shown. It would be ideal if it was possible to render directly into active skia's framebuffer without any unneccessary image copies.
So far I've only been able to find this example of 3D rendering inside of compose:
https://github.com/romainguy/sample-materials-shop, but it is specific for Android and does some trickery with AndroidView, I need something similiar for desktop.