diff options
Diffstat (limited to 'ir.cpp')
-rw-r--r-- | ir.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -756,6 +756,14 @@ ir_variable::interpolation_string() const } +unsigned +ir_variable::component_slots() const +{ + /* FINISHME: Sparsely accessed arrays require fewer slots. */ + return this->type->component_slots(); +} + + ir_function_signature::ir_function_signature(const glsl_type *return_type) : return_type(return_type), is_defined(false) { |