commit | c30f6e5dea7e75983784f3539304c8dd36356d1c | [log] [tgz] |
---|---|---|
author | Kenneth Graunke <kenneth@whitecape.org> | Wed May 26 16:41:47 2010 -0700 |
committer | Kenneth Graunke <kenneth@whitecape.org> | Wed Jun 09 11:14:57 2010 -0700 |
tree | 07f07b0edadac395c0d0b796cdcfe7e8d07db5a4 | |
parent | 81377c012cf5db3efe2e39885846c60b6e5c6eb8 [diff] [blame] |
Add mappings between ir_texture_opcode and strings.
diff --git a/ir.h b/ir.h index fcb23ea..44ffdc5 100644 --- a/ir.h +++ b/ir.h
@@ -775,6 +775,16 @@ /* 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. */