/**
* \file slang_ir.h
- * Mesa GLSL Itermediate Representation tree types and constants.
+ * Mesa GLSL Intermediate Representation tree types and constants.
* \author Brian Paul
*/
IR_EXP2, /* 2^x */
IR_LOG2, /* log base 2 */
IR_RSQ, /* 1/sqrt() */
- IR_RCP, /* recipricol */
+ IR_RCP, /* reciprocol */
IR_FLOOR,
IR_FRAC,
- IR_ABS,
+ IR_ABS, /* absolute value */
+ IR_NEG, /* negate */
IR_SIN, /* sine */
IR_COS, /* cosine */
IR_NOT, /* logical not */
IR_VAR, /* variable reference */
IR_VAR_DECL,/* var declaration */
+ IR_TEX, /* texture lookup */
+ IR_TEXB, /* texture lookup with LOD bias */
+ IR_TEXP, /* texture lookup with projection */
IR_FLOAT,
IR_FIELD,
IR_I_TO_F
const char *Comment;
const char *Target;
GLuint Swizzle;
- GLuint Writemask; /**< If Op == IR_MOVE */
- GLfloat Value[4]; /**< If Op == IR_FLOAT */
+ GLuint Writemask; /**< If Opcode == IR_MOVE */
+ GLfloat Value[4]; /**< If Opcode == IR_FLOAT */
slang_variable *Var;
slang_ir_storage *Store;
} slang_ir_node;