summaryrefslogtreecommitdiff
path: root/ir.h
diff options
context:
space:
mode:
Diffstat (limited to 'ir.h')
-rw-r--r--ir.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ir.h b/ir.h
index fcb23ea0fa..44ffdc554e 100644
--- a/ir.h
+++ b/ir.h
@@ -775,6 +775,16 @@ public:
/* empty */
}
+ /**
+ * Return a string representing the ir_texture_opcode.
+ */
+ const char *opcode_string();
+
+ /**
+ * Do a reverse-lookup to translate a string into an ir_texture_opcode.
+ */
+ static ir_texture_opcode get_opcode(const char *);
+
enum ir_texture_opcode op;
/** Sampler to use for the texture access. */