Lines Matching refs:arrayElem
349 void streamArrayStr(std::ostringstream& _str, int arrayElem = -1) const in streamArrayStr() argument
355 if (arrayElem < 0) in streamArrayStr()
368 _str << "[" << arrayElem / tailSize << "]"; in streamArrayStr()
369 arrayElem %= tailSize; in streamArrayStr()
679 for (int arrayElem = 0; arrayElem < type.arraySize; arrayElem++) in Uniform() local
866 void streamArrayStr(std::ostringstream& str, int arrayElem = -1) const in streamArrayStr() argument
872 if (arrayElem < 0) in streamArrayStr()
885 str << "[" << arrayElem / tailSize << "]"; in streamArrayStr()
886 arrayElem %= tailSize; in streamArrayStr()
891 const SubroutineFunction& getSelectedFunction(int arrayElem) const in getSelectedFunction()
893 assert(arrayElem < arraySize); in getSelectedFunction()
894 return functions.fn[embeddedUIntUniform.uValues[arrayElem]]; in getSelectedFunction()
1089 for (int arrayElem = 0; arrayElem < subroutineUniform.arraySize; arrayElem++) in streamSubroutineValidator() local
1092 subroutineUniform.streamArrayStr(ret, arrayElem); in streamSubroutineValidator()
1094 subroutineUniform.getSelectedFunction(arrayElem).getRetVal().streamValue(ret); in streamSubroutineValidator()
1445 for (int arrayElem = 0; arrayElem < uniform.type.arraySize; arrayElem++) in setUniform() local
1450 glUniform1f(loc, *(GLfloat*)uniform.value.getPtr(arrayElem)); in setUniform()
1453 glUniform2fv(loc, 1, (GLfloat*)uniform.value.getPtr(arrayElem)); in setUniform()
1456 glUniform3fv(loc, 1, (GLfloat*)uniform.value.getPtr(arrayElem)); in setUniform()
1459 glUniform4fv(loc, 1, (GLfloat*)uniform.value.getPtr(arrayElem)); in setUniform()
1462 glUniformMatrix2fv(loc, 1, GL_FALSE, (GLfloat*)uniform.value.getPtr(arrayElem)); in setUniform()
1465 glUniformMatrix3fv(loc, 1, GL_FALSE, (GLfloat*)uniform.value.getPtr(arrayElem)); in setUniform()
1468 glUniformMatrix4fv(loc, 1, GL_FALSE, (GLfloat*)uniform.value.getPtr(arrayElem)); in setUniform()
1471 glUniformMatrix2x3fv(loc, 1, GL_FALSE, (GLfloat*)uniform.value.getPtr(arrayElem)); in setUniform()
1474 glUniformMatrix4x3fv(loc, 1, GL_FALSE, (GLfloat*)uniform.value.getPtr(arrayElem)); in setUniform()
1477 glUniformMatrix2x4fv(loc, 1, GL_FALSE, (GLfloat*)uniform.value.getPtr(arrayElem)); in setUniform()
1480 glUniformMatrix3x4fv(loc, 1, GL_FALSE, (GLfloat*)uniform.value.getPtr(arrayElem)); in setUniform()
1483 glUniformMatrix3x2fv(loc, 1, GL_FALSE, (GLfloat*)uniform.value.getPtr(arrayElem)); in setUniform()
1486 glUniformMatrix4x2fv(loc, 1, GL_FALSE, (GLfloat*)uniform.value.getPtr(arrayElem)); in setUniform()
1490 glUniform1i(loc, *(GLint*)uniform.value.getPtr(arrayElem)); in setUniform()
1493 glUniform2iv(loc, 1, (GLint*)uniform.value.getPtr(arrayElem)); in setUniform()
1496 glUniform3iv(loc, 1, (GLint*)uniform.value.getPtr(arrayElem)); in setUniform()
1499 glUniform4iv(loc, 1, (GLint*)uniform.value.getPtr(arrayElem)); in setUniform()
1502 glUniform1ui(loc, *(GLuint*)uniform.value.getPtr(arrayElem)); in setUniform()
1519 for (int arrayElem = 0; arrayElem < subroutineUniform.arraySize; arrayElem++) in setSubroutineUniform() local
1526 subroutineUniform.streamArrayStr(name, arrayElem); in setSubroutineUniform()
1531 loc = subroutineUniform.location.val + arrayElem; in setSubroutineUniform()
1536 const SubroutineFunction& selectedFunction = subroutineUniform.getSelectedFunction(arrayElem); in setSubroutineUniform()
1671 for (int arrayElem = 0; arrayElem < uniform.type.arraySize; arrayElem++) in runQueryUniform() local
1678 reservedLocation = uniform.location.val + arrayElem; in runQueryUniform()
1683 (arrayElem < 1000 || arrayElem > uniform.type.arraySize - 1000); in runQueryUniform()
1689 uniform.type.streamArrayStr(name, arrayElem); in runQueryUniform()
1785 for (int arrayElem = 0; arrayElem < subroutineUniform.arraySize; arrayElem++) in runQueryUniformSubroutine() local
1790 subroutineUniform.streamArrayStr(name, arrayElem); in runQueryUniformSubroutine()
1827 GLint expected = subroutineUniform.location.val + arrayElem; in runQueryUniformSubroutine()