What does “statically assign” mean for gl_FragDepth?

感情迁移 提交于 2020-06-28 05:10:06

问题


The documentation for gl_FragDepth, contains the phrase "If a shader statically assigns to gl_FragDepth... ." What does "statically" mean?


回答1:


GLSL ES 1.00 specification

7.2 Fragment Shader Special Variables

(A shader contains a static assignment to a variable x if, after pre-processing, the shader contains a statement that would write to x, whether or not run-time flow of control will cause that statement to be executed.)



来源:https://stackoverflow.com/questions/43218221/what-does-statically-assign-mean-for-gl-fragdepth

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