glsl: Introduce a new "const_in" variable mode.
This annotation is for an "in" function parameter for which it is only legal to pass constant expressions. The only known example of this, currently, is the textureOffset functions. This should never be used for globals.
This commit is contained in:
@@ -299,6 +299,7 @@ mode_string(const ir_variable *var)
|
||||
case ir_var_out: return "shader output";
|
||||
case ir_var_inout: return "shader inout";
|
||||
|
||||
case ir_var_const_in:
|
||||
case ir_var_temporary:
|
||||
default:
|
||||
assert(!"Should not get here.");
|
||||
|
||||
Reference in New Issue
Block a user