什么是“静态分配"?是gl_FragDepth的意思吗? [英] What does "statically assign" mean for gl_FragDepth?

查看:135
本文介绍了什么是“静态分配"?是gl_FragDepth的意思吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

gl_FragDepth的文档包含短语如果着色器静态分配给gl_FragDepth ...". 静态"是什么意思?

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

推荐答案

GLSL ES 1.00规范

7.2片段着色器特殊变量

(如果着色器在预处理之后包含一个x,则该着色器包含对变量x的静态赋值 会写入x的语句,无论运行时控制流是否会导致该语句为 执行.)

(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.)

这篇关于什么是“静态分配"?是gl_FragDepth的意思吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆