Lines Matching refs:inNdx

824 	for (int inNdx = 0; inNdx < numInputs; inNdx++)  in init()  local
826 const ShaderInput& in = inNdx > 0 ? m_in1 : m_in0; in init()
829 string& inValue = inNdx > 0 ? inValue1 : inValue0; in init()
864 op << "uniform " << precName << " " << typeName << " u_in" << inNdx << ";\n"; in init()
865 inValue = string("u_in") + de::toString(inNdx); in init()
869 op << "const " << precName << " " << typeName << " in" << inNdx << " = "; in init()
874 case TYPE_FLOAT: op << de::floatToString(s_constInFloat[inNdx], 1); break; in init()
875 case TYPE_FLOAT_VEC2: writeVectorConstructor<2>(op, s_constInVec2[inNdx]); break; in init()
876 case TYPE_FLOAT_VEC3: writeVectorConstructor<3>(op, s_constInVec3[inNdx]); break; in init()
877 case TYPE_FLOAT_VEC4: writeVectorConstructor<4>(op, s_constInVec4[inNdx]); break; in init()
878 case TYPE_FLOAT_MAT2: writeMatrixConstructor<2, 2>(op, Mat2(s_constInMat2[inNdx])); break; in init()
879 case TYPE_FLOAT_MAT3: writeMatrixConstructor<3, 3>(op, Mat3(s_constInMat3[inNdx])); break; in init()
880 case TYPE_FLOAT_MAT4: writeMatrixConstructor<4, 4>(op, Mat4(s_constInMat4[inNdx])); break; in init()
888 inValue = string("in") + de::toString(inNdx); in init()
1051 for (int inNdx = 0; inNdx < 2; inNdx++) in setupUniforms() local
1053 const ShaderInput& in = inNdx > 0 ? m_in1 : m_in0; in setupUniforms()
1057 int loc = gl.getUniformLocation(programID, (string("u_in") + de::toString(inNdx)).c_str()); in setupUniforms()
1064 case TYPE_FLOAT: gl.uniform1f(loc, s_constInFloat[inNdx]); break; in setupUniforms()
1065 case TYPE_FLOAT_VEC2: gl.uniform2fv(loc, 1, s_constInVec2[inNdx].getPtr()); break; in setupUniforms()
1066 case TYPE_FLOAT_VEC3: gl.uniform3fv(loc, 1, s_constInVec3[inNdx].getPtr()); break; in setupUniforms()
1067 case TYPE_FLOAT_VEC4: gl.uniform4fv(loc, 1, s_constInVec4[inNdx].getPtr()); break; in setupUniforms()
1068 …case TYPE_FLOAT_MAT2: gl.uniformMatrix2fv(loc, 1, GL_FALSE, s_constInMat2[inNdx].getColumnMajorDat… in setupUniforms()
1069 …case TYPE_FLOAT_MAT3: gl.uniformMatrix3fv(loc, 1, GL_FALSE, s_constInMat3[inNdx].getColumnMajorDat… in setupUniforms()
1070 …case TYPE_FLOAT_MAT4: gl.uniformMatrix4fv(loc, 1, GL_FALSE, s_constInMat4[inNdx].getColumnMajorDat… in setupUniforms()