久久久久久久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?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

盡管搜索了數(shù)小時,但我似乎無法找到明確的答案.有人可以告訴我發(fā)生了什么嗎?我收到諸如不支持版本 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 來說太新了.刪除版本規(guī)范或遞減它,直到著色器編譯.您可能需要修復著色器中的一些其他錯誤,因為語言的各個版本確實存在一些差異.

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模板網(wǎng)!

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

相關文檔推薦

How to wrap text around components in a JTextPane?(如何在 JTextPane 中的組件周圍環(huán)繞文本?)
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 數(shù)據(jù)庫)
Why does Spring-data-jdbc not save my Car object?(為什么 Spring-data-jdbc 不保存我的 Car 對象?)
Use threading to process file chunk by chunk(使用線程逐塊處理文件)
主站蜘蛛池模板: 免费一级片 | 成人欧美一区二区三区在线观看 | 欧美一级淫片免费视频黄 | 亚洲综合大片69999 | 精品欧美一区二区三区 | 自拍偷拍中文字幕 | 日日干综合 | 国产日韩欧美一区 | 亚洲va国产日韩欧美精品色婷婷 | 久热电影 | 精品国产乱码久久久久久中文 | 亚洲免费在线 | 亚洲精品乱码久久久久久9色 | 一级黄色绿像片 | 国产激情一区二区三区 | 亚洲精品视频在线播放 | 久久精品1 | 亚洲少妇综合网 | 日韩av在线免费 | 日韩精品在线网站 | 亚洲小说图片 | 免费一看一级毛片 | 无人区国产成人久久三区 | 国产日韩欧美在线观看 | 色爱区综合 | 超碰91在线 | 在线色| 亚洲在线一区二区 | 精品日韩一区 | 欧美日韩精品亚洲 | 亚洲国产电影 | 91免费福利视频 | 在线免费观看黄色av | 久久精品一区 | 久草网站| 蜜臀av日日欢夜夜爽一区 | 国产综合久久 | 国产小视频在线观看 | 亚洲日本一区二区 | 久久久av一区 | 亚洲免费网 |