开发者

Nonblocking texture upload on iPhone and other OpenGL ES platforms

I am doing some work which involves drawing video frames in real time in OpenGL ES. Right now I am using glTexImage2D to transfer the data, in the absence of Pixel Buffer Objects and the like. A 开发者_C百科below answer suggests that glTexImage2D is always blocking, even if texture object referenced does is not used for any drawing. Is there a way to do a nonblocking texture upload with OpenGL ES (any version)?

Thank you very much, Sean


No, glTexImage2D blocks, and will not return until the copy is complete.

I'm not sure if GL ES supports context sharing, if it does, you can upload the texture in another thread with another context, sharig that texture with your main context.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜