summaryrefslogtreecommitdiff
path: root/src/glsl/ir.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-07-01 10:37:11 -0700
committerEric Anholt <eric@anholt.net>2010-07-01 11:07:22 -0700
commitd925c9173009e9e5d48df30b30aaef22753183aa (patch)
treee42ee590b44d75b69fb67ee7de8b42ce05ee1c11 /src/glsl/ir.h
parent5e4dd061d17563828bcce5525400a0ce363aa15d (diff)
glsl2: Add ir_unop_fract as an expression type.
Most backends will prefer seeing this to seeing (a - floor(a)), so represent it explicitly.
Diffstat (limited to 'src/glsl/ir.h')
-rw-r--r--src/glsl/ir.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/ir.h b/src/glsl/ir.h
index 00b0076c17..f47813786b 100644
--- a/src/glsl/ir.h
+++ b/src/glsl/ir.h
@@ -528,6 +528,7 @@ enum ir_expression_operation {
ir_unop_trunc,
ir_unop_ceil,
ir_unop_floor,
+ ir_unop_fract,
/*@}*/
/**