Posts

Post not yet marked as solved
3 Replies
0 Views
“[MTLCommandBuffer waitUntilScheduled]” it works! but the demo on "Mixing Metal and OpenGL Rendering in a View" do not show this call before using opengl to render 'Interop Texture' to fbo. Anyways, thank you very much.
Post not yet marked as solved
3 Replies
0 Views
Add more infomation: the follow patch is for demo on Mixing Metal and OpenGL Rendering in a View changes : just display Quad Rendered with GL to View AAPLMetalRenderer add internal texture(MTLTexture), first draw quad on this internal texture, and then draw to 'Interop Texture' CADisplayLink set up 1fps (so it's possible to see the phenomenon) result: you can see the first frame is black just after the app start up (the 'metal-draw' quad is black but outside is red) 0001-black-at-first-frame.patch