Implement projective texture sampling, 3D textures. Disable some debug output.
[mesa.git] / src / mesa / shader / slang / slang_ir.h
index 188d7d96d34b24bc9af7fdc7718e8b674d9af06b..273964a8f06fe57e2588fd6378d8b1a3307efa5e 100644 (file)
@@ -24,7 +24,7 @@
 
 /**
  * \file slang_ir.h
- * Mesa GLSL Itermediate Representation tree types and constants.
+ * Mesa GLSL Intermediate Representation tree types and constants.
  * \author Brian Paul
  */
 
@@ -69,15 +69,19 @@ typedef enum
    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
@@ -105,8 +109,8 @@ typedef struct slang_ir_node_
    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;