Are there any non-mobile graphics cards that don't support “precision highp float”?

萝らか妹 提交于 2019-12-07 13:10:06

问题


I know it is common for mobile phones to not support 'precision highp float' in fragment shaders, but are there any desktop or laptop GPUs that don't support it? In other words, if I'm only writing my shader code for use in desktop/laptop scenarios, do I really need to do this conditional stuff recommended in the OpenGL ES 2.0 book?

#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else 
precision mediump float;
#endif

Or can I just stick with declaring it 'highp' and be done with it?


回答1:


Most Intel GPUs don't support it; so that would be most of the laptop market. I don't know what the story is with AMD, and as far as NVIDIA cards go, GeForce 8 series and earlier won't work.



来源:https://stackoverflow.com/questions/5748355/are-there-any-non-mobile-graphics-cards-that-dont-support-precision-highp-floa

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