glFenceSync alternative in OpenGL ES 2.0

懵懂的女人 提交于 2019-12-12 18:54:07

问题


I see that glFenceSync does not exist in OpenGL ES 2.0, it was added only in OpenGL ES 3.0.

Does OpenGL ES 2.0 offer any alternative of syncing between CPU and GPU, aside from the brutal force glFinish?


回答1:


In glext.h.

GL_API GLsync glFenceSyncAPPLE(GLenum condition, GLbitfield flags) __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_6_0);

I am pretty sure this is what you want. Anyway available only on iOS 6.0 or later.




回答2:


You have different calls in OpenGL ES 2.0 that give some insight into different matters concerning GL, but mainly, you're left with glFinish only.



来源:https://stackoverflow.com/questions/12155624/glfencesync-alternative-in-opengl-es-2-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!