diff options
Diffstat (limited to 'src/glsl/ir.h')
-rw-r--r-- | src/glsl/ir.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/glsl/ir.h b/src/glsl/ir.h index f2186a5af8a..3c947412f40 100644 --- a/src/glsl/ir.h +++ b/src/glsl/ir.h @@ -575,6 +575,11 @@ public: return this->u.state_slots; } + inline bool is_name_ralloced() const + { + return this->name != ir_variable::tmp_name; + } + /** * Enable emitting extension warnings for this variable */ @@ -886,6 +891,11 @@ private: * \sa ir_variable::location */ const glsl_type *interface_type; + + /** + * Name used for anonymous compiler temporaries + */ + static const char tmp_name[]; }; /** |