mojoshader.h
changeset 1032 464f38a2fb70
parent 1030 a407c516e325
child 1033 b72073c4820e
equal deleted inserted replaced
1031:e6be730725d7 1032:464f38a2fb70
   357 /* !!! FIXME: document me. */
   357 /* !!! FIXME: document me. */
   358 typedef enum MOJOSHADER_preshaderOpcode
   358 typedef enum MOJOSHADER_preshaderOpcode
   359 {
   359 {
   360     MOJOSHADER_PRESHADEROP_NOP,
   360     MOJOSHADER_PRESHADEROP_NOP,
   361     MOJOSHADER_PRESHADEROP_MOV,
   361     MOJOSHADER_PRESHADEROP_MOV,
   362     MOJOSHADER_PRESHADEROP_CMP,
       
   363     MOJOSHADER_PRESHADEROP_DOT,
       
   364     MOJOSHADER_PRESHADEROP_DOT_SCALAR,
       
   365     MOJOSHADER_PRESHADEROP_NEG,
   362     MOJOSHADER_PRESHADEROP_NEG,
   366     MOJOSHADER_PRESHADEROP_MAX,
       
   367     MOJOSHADER_PRESHADEROP_MAX_SCALAR,
       
   368     MOJOSHADER_PRESHADEROP_CMPLT,
       
   369     MOJOSHADER_PRESHADEROP_CMPLT_SCALAR,
       
   370     MOJOSHADER_PRESHADEROP_CMPGE,
       
   371     MOJOSHADER_PRESHADEROP_CMPGE_SCALAR,
       
   372     MOJOSHADER_PRESHADEROP_RCP,
   363     MOJOSHADER_PRESHADEROP_RCP,
   373     MOJOSHADER_PRESHADEROP_FRC,
   364     MOJOSHADER_PRESHADEROP_FRC,
   374     MOJOSHADER_PRESHADEROP_EXP,
   365     MOJOSHADER_PRESHADEROP_EXP,
   375     MOJOSHADER_PRESHADEROP_ADD,
       
   376     MOJOSHADER_PRESHADEROP_ADD_SCALAR,
       
   377     MOJOSHADER_PRESHADEROP_MUL,
       
   378     MOJOSHADER_PRESHADEROP_MUL_SCALAR,
       
   379     MOJOSHADER_PRESHADEROP_LOG,
   366     MOJOSHADER_PRESHADEROP_LOG,
   380     MOJOSHADER_PRESHADEROP_RSQ,
   367     MOJOSHADER_PRESHADEROP_RSQ,
   381     MOJOSHADER_PRESHADEROP_SIN,
   368     MOJOSHADER_PRESHADEROP_SIN,
   382     MOJOSHADER_PRESHADEROP_COS,
   369     MOJOSHADER_PRESHADEROP_COS,
       
   370     MOJOSHADER_PRESHADEROP_ASIN,
       
   371     MOJOSHADER_PRESHADEROP_ACOS,
       
   372     MOJOSHADER_PRESHADEROP_ATAN,
       
   373     MOJOSHADER_PRESHADEROP_MIN,
       
   374     MOJOSHADER_PRESHADEROP_MAX,
       
   375     MOJOSHADER_PRESHADEROP_CMPLT,
       
   376     MOJOSHADER_PRESHADEROP_CMPGE,
       
   377     MOJOSHADER_PRESHADEROP_ADD,
       
   378     MOJOSHADER_PRESHADEROP_MUL,
       
   379     MOJOSHADER_PRESHADEROP_ATAN2,
       
   380     MOJOSHADER_PRESHADEROP_CMP,
       
   381     MOJOSHADER_PRESHADEROP_DOT,
       
   382     MOJOSHADER_PRESHADEROP_SCALAR_OPS,
       
   383     MOJOSHADER_PRESHADEROP_MIN_SCALAR = MOJOSHADER_PRESHADEROP_SCALAR_OPS,
       
   384     MOJOSHADER_PRESHADEROP_MAX_SCALAR,
       
   385     MOJOSHADER_PRESHADEROP_CMPLT_SCALAR,
       
   386     MOJOSHADER_PRESHADEROP_CMPGE_SCALAR,
       
   387     MOJOSHADER_PRESHADEROP_ADD_SCALAR,
       
   388     MOJOSHADER_PRESHADEROP_MUL_SCALAR,
       
   389     MOJOSHADER_PRESHADEROP_ATAN2_SCALAR,
       
   390     MOJOSHADER_PRESHADEROP_DOT_SCALAR,
   383 } MOJOSHADER_preshaderOpcode;
   391 } MOJOSHADER_preshaderOpcode;
   384 
   392 
   385 typedef enum MOJOSHADER_preshaderOperandType
   393 typedef enum MOJOSHADER_preshaderOperandType
   386 {
   394 {
   387     MOJOSHADER_PRESHADEROPERAND_INPUT,
   395     MOJOSHADER_PRESHADEROPERAND_INPUT,