Are CVOpenGL[ES]TextureCaches incompatible with floating point formats?

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-05 13:50:53

问题


On OSX10.4/iOS5 and onwards you can optimize your texture uploads and downloads using CVOpenGL[ES]TextureCaches.

Instead of uploading textures with glTexImage2D and reading from the frame buffer with glReadPixels, you use a CVOpenGL[ES]TextureCache to translate your texture/FBO operations into the language of CoreVideo CVPixelBuffers.

This works perfectly well with byte (and probably short) sized integer formats, but, apart from a fancy YUV pixel format, floats are decidedly under-represented in Core Video's Pixel Formats.

Does this mean I can't use GL_FLOAT textures and render targets with CVOpenGL[ES]TextureCaches?

来源:https://stackoverflow.com/questions/14228230/are-cvopenglestexturecaches-incompatible-with-floating-point-formats

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