Lines Matching defs:numCols
809 int numCols = getDataTypeMatrixNumColumns(varType);
811 const char* matSizeName = getIntUniformName(numCols);
835 if (numCols >= 2) op << ", ui_one";
836 if (numCols >= 3) op << ", ui_two";
837 if (numCols >= 4) op << ", ui_three";
863 if (numCols >= 2) op << " tmp[1] = ${VEC_TYPE}(coords.yzwx) * 0.5;\n";
864 if (numCols >= 3) op << " tmp[2] = ${VEC_TYPE}(coords.zwxy) * 0.25;\n";
865 if (numCols >= 4) op << " tmp[3] = ${VEC_TYPE}(coords.wxyz) * 0.125;\n";
870 if (numCols >= 2) op << " tmp[ui_one] = ${VEC_TYPE}(coords.yzwx) * 0.5;\n";
871 if (numCols >= 3) op << " tmp[ui_two] = ${VEC_TYPE}(coords.zwxy) * 0.25;\n";
872 if (numCols >= 4) op << " tmp[ui_three] = ${VEC_TYPE}(coords.wxyz) * 0.125;\n";
876 op << " for (int i = 0; i < " << numCols << "; i++)\n";
897 if (numCols >= 2) op << " res += tmp[1];\n";
898 if (numCols >= 3) op << " res += tmp[2];\n";
899 if (numCols >= 4) op << " res += tmp[3];\n";
904 if (numCols >= 2) op << " res += tmp[ui_one];\n";
905 if (numCols >= 3) op << " res += tmp[ui_two];\n";
906 if (numCols >= 4) op << " res += tmp[ui_three];\n";
910 op << " for (int i = 0; i < " << numCols << "; i++)\n";