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:
@@ -397,6 +397,8 @@ ir_reader::read_declaration(s_expression *expr)
|
||||
var->mode = ir_var_auto;
|
||||
} else if (strcmp(qualifier->value(), "in") == 0) {
|
||||
var->mode = ir_var_in;
|
||||
} else if (strcmp(qualifier->value(), "const_in") == 0) {
|
||||
var->mode = ir_var_const_in;
|
||||
} else if (strcmp(qualifier->value(), "out") == 0) {
|
||||
var->mode = ir_var_out;
|
||||
} else if (strcmp(qualifier->value(), "inout") == 0) {
|
||||
|
Reference in New Issue
Block a user