久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

我可以在 OpenGL ES 2.0 中使用哪些版本的 GLSL?

What versions of GLSL can I use in OpenGL ES 2.0?(我可以在 OpenGL ES 2.0 中使用哪些版本的 GLSL?)
本文介紹了我可以在 OpenGL ES 2.0 中使用哪些版本的 GLSL?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

盡管搜索了數小時,但我似乎無法找到明確的答案.有人可以告訴我發生了什么嗎?我收到諸如不支持版本 140"之類的錯誤消息.這是我的設備(Kindle Fire)還是 GL ES 2.0?我需要添加庫嗎?

I can't seem to find a clear answer on this, despite hours of googling. Can someone just tell me what's going on? I get errors saying things like, "version 140 is not supported." Is this my device (Kindle Fire) or GL ES 2.0? Do I need to add libraries or anything?

推薦答案

其實你不需要添加任何庫,140 對 Kindle Fire 來說太新了.刪除版本規范或遞減它,直到著色器編譯.您可能需要修復著色器中的一些其他錯誤,因為語言的各個版本確實存在一些差異.

you actually don't have to add any libraries, 140 is far too new for Kindle Fire. Either remove the version specification or decrement it until the shader compiles. You may need to fix some other errors in the shader as the individual versions of the language do have some differences.

您還可以使用 glGetString() 查詢 GL_SHADING_LANGUAGE_VERSION 以獲取您的設備支持的 GLSL 版本(保證至少為 100 - ES 2.0 是第一個一個帶有陰影語言的).

You can also query GL_SHADING_LANGUAGE_VERSION using glGetString() to get version of GLSL that is supported on your device (guaranteed to be 100 at least - ES 2.0 is the first one with a shading language).

另外,正如其他人所提到的,OpenGL ES GLSL 與 OpenGL ES 不是同一種語言(我認為這很明顯,OpenGL ES 不是 OpenGL),因此版本號將不匹配.但是有 GL_ARB_ES2_compatibility 及其對 ES3、ES3.1 和 ES3 的擴展.2,其中描述了 ES/非 ES GLSL 語言的映射,并且使用這些語言可以在非 ES 上下文中獲得類似 ES 的功能.

Also, as mentioned by the others, OpenGL ES GLSL is not the same language as OpenGL ES (I thought that was rather obvious, OpenGL ES is not OpenGL) so the version numbers will not match. There is however GL_ARB_ES2_compatibility and its extensions to ES3, ES3.1 and ES3.2, where the mapping of the ES / non-ES GLSL languages is described, and using those it is possible to get ES-like functionality on an non-ES context.

這篇關于我可以在 OpenGL ES 2.0 中使用哪些版本的 GLSL?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

How to wrap text around components in a JTextPane?(如何在 JTextPane 中的組件周圍環繞文本?)
MyBatis, how to get the auto generated key of an insert? [MySql](MyBatis,如何獲取插入的自動生成密鑰?[MySql])
Inserting to Oracle Nested Table in Java(在 Java 中插入 Oracle 嵌套表)
Java: How to insert CLOB into oracle database(Java:如何將 CLOB 插入 oracle 數據庫)
Why does Spring-data-jdbc not save my Car object?(為什么 Spring-data-jdbc 不保存我的 Car 對象?)
Use threading to process file chunk by chunk(使用線程逐塊處理文件)
主站蜘蛛池模板: 99久久99久久精品国产片果冰 | 成人性视频免费网站 | 久久久精| 亚洲精品久久久久久久久久久 | 午夜日韩 | 爱爱视频在线观看 | 成人精品网 | 欧美日韩亚洲三区 | 国产精品久久久久免费 | 国产激情视频在线观看 | 黑人一级黄色大片 | 国产视频导航 | 91p在线观看 | 99久视频| 中文av在线播放 | 婷婷色在线播放 | 色接久久 | 久久九九99| 精品国产一区三区 | 亚洲免费精品 | 在线一区视频 | 91色视频在线 | www.亚洲视频.com | 亚洲欧洲精品一区 | 在线视频91| 黄网站涩免费蜜桃网站 | 成人欧美一区二区 | 免费av播放 | 日韩视频在线免费观看 | 不卡在线视频 | 久久免费视频在线 | 一级做受毛片免费大片 | 日韩久久久久久久 | 亚洲三区在线播放 | 成人在线欧美 | 成人亚洲精品久久久久软件 | 在线观看的av | 亚洲成人av一区二区 | 黄色一级毛片免费看 | 国产一区亚洲二区三区 | 在线看免费 |