diff options
author | Jordan Justen <[email protected]> | 2013-03-09 17:12:09 -0800 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2013-03-25 11:35:56 -0700 |
commit | e207c330203473830fcc1a36c5b7bbb7a574682d (patch) | |
tree | e5bf392f7eaa4561e09ea7dd2c49ea1dca310091 /src/glsl/ir.h | |
parent | eb92f8958705320374b080c7f8d6ece7407e7cbe (diff) |
glsl ir: add as_dereference_record
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/ir.h')
-rw-r--r-- | src/glsl/ir.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/glsl/ir.h b/src/glsl/ir.h index bbfec695f73..ee27dea993f 100644 --- a/src/glsl/ir.h +++ b/src/glsl/ir.h @@ -120,6 +120,7 @@ public: virtual class ir_dereference * as_dereference() { return NULL; } virtual class ir_dereference_array * as_dereference_array() { return NULL; } virtual class ir_dereference_variable *as_dereference_variable() { return NULL; } + virtual class ir_dereference_record *as_dereference_record() { return NULL; } virtual class ir_expression * as_expression() { return NULL; } virtual class ir_rvalue * as_rvalue() { return NULL; } virtual class ir_loop * as_loop() { return NULL; } @@ -1738,6 +1739,11 @@ public: virtual ir_constant *constant_expression_value(struct hash_table *variable_context = NULL); + virtual ir_dereference_record *as_dereference_record() + { + return this; + } + /** * Get the variable that is ultimately referenced by an r-value */ |