mojoshader.c
branchtrunk
changeset 181 346263640ccc
parent 180 e25cd1bad94d
child 182 09e287c6a111
equal deleted inserted replaced
180:e25cd1bad94d 181:346263640ccc
  1660     } // if
  1660     } // if
  1661 
  1661 
  1662     const char *result_shift_str = "";
  1662     const char *result_shift_str = "";
  1663     switch (arg->result_shift)
  1663     switch (arg->result_shift)
  1664     {
  1664     {
  1665         case 0x1: result_shift_str = " * 2"; break;
  1665         case 0x1: result_shift_str = " * 2.0"; break;
  1666         case 0x2: result_shift_str = " * 4"; break;
  1666         case 0x2: result_shift_str = " * 4.0"; break;
  1667         case 0x3: result_shift_str = " * 8"; break;
  1667         case 0x3: result_shift_str = " * 8.0"; break;
  1668         case 0xD: result_shift_str = " / 8"; break;
  1668         case 0xD: result_shift_str = " / 8.0"; break;
  1669         case 0xE: result_shift_str = " / 4"; break;
  1669         case 0xE: result_shift_str = " / 4.0"; break;
  1670         case 0xF: result_shift_str = " / 2"; break;
  1670         case 0xF: result_shift_str = " / 2.0"; break;
  1671     } // switch
  1671     } // switch
  1672     need_parens |= (result_shift_str[0] != '\0');
  1672     need_parens |= (result_shift_str[0] != '\0');
  1673 
  1673 
  1674 // !!! FIXME: use get_GLSL_destarg_varname() here?
  1674 // !!! FIXME: use get_GLSL_destarg_varname() here?
  1675     char regnum_str[16];
  1675     char regnum_str[16];