Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对于 OpenGL ES 3.0,我想知道我们是否仍然使用attribute/ varyingetc 作为变量。或者我们需要切换到in/out变量?
attribute
varying
in
out
如果您迁移到新的 GLSL 版本 ( ) ,则需要切换到in/ 。该规范记录了新的存储限定符,还特别提到:out#version 300 es
#version 300 es
在将应用程序从 OpenGL ES 2.0 移植到 OpenGL ES 3.0 时,应注意以下几点: 并非该语言的 v1.00 中存在的所有语言结构都在 v3.00 中可用,例如属性和可变限定符。但是,GLSL ES 3.00 的功能是 GLSL ES 1.00 的超集。