diff options
Diffstat (limited to 'src/glsl/ir.cpp')
-rw-r--r-- | src/glsl/ir.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp index 1ba87515ea7..b601c7b11fd 100644 --- a/src/glsl/ir.cpp +++ b/src/glsl/ir.cpp @@ -507,6 +507,12 @@ ir_expression::get_operator(const char *str) return (ir_expression_operation) -1; } +bool +ir_expression::is_type_conversion() +{ + return (operation >= ir_unop_f2i && operation <= ir_unop_u2i); +} + ir_constant::ir_constant() { this->ir_type = ir_type_constant; |