I'm trying to render a SceneKit scene with Metal. I started from the ImageTargetsMetal sample from the Advanced Topics zip file.
I already managed to render SceneKit in the EAGLView using OpenGL, by using a SCNRenderer initialized with the GL context that Vuforia is using.
Now I tried a similar approach with metal, using a the same Metal device that Vuforia uses, using
iOS tells me in an runtime error that I can't use the commandBuffer since the encoder is still active; When I try to render a scene after [encoder endEncoding];, I get a black screen. How can I render the SceneKit scene? Is it possible?