diff options
author | Chad Versace <[email protected]> | 2011-01-27 01:40:22 -0800 |
---|---|---|
committer | Chad Versace <[email protected]> | 2011-01-26 16:37:44 -0800 |
commit | 5fc57f471b10e74546f999269a2a8f9186da9731 (patch) | |
tree | 89d95eefffe0779bb8a18c29962c66dc65f0514d /src/glsl/ir.cpp | |
parent | 39cad66a889b453d78e83e6a20560bcc338000de (diff) |
glsl: Define enum ir_depth_layout
Diffstat (limited to 'src/glsl/ir.cpp')
-rw-r--r-- | src/glsl/ir.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp index 460d43b02e1..b3676d57076 100644 --- a/src/glsl/ir.cpp +++ b/src/glsl/ir.cpp @@ -472,6 +472,22 @@ const char *ir_expression::operator_string() return operator_string(this->operation); } +const char* +depth_layout_string(ir_depth_layout layout) +{ + switch(layout) { + case ir_depth_layout_none: return ""; + case ir_depth_layout_any: return "depth_any"; + case ir_depth_layout_greater: return "depth_greater"; + case ir_depth_layout_less: return "depth_less"; + case ir_depth_layout_unchanged: return "depth_unchanged"; + + default: + assert(0); + return ""; + } +} + ir_expression_operation ir_expression::get_operator(const char *str) { |