Lines Matching refs:uniforms
3760 std::vector<sglr::UniformSlot>& uniforms = m_currentProgram->m_program->m_uniforms;
3765 RC_IF_ERROR(location < 0 || (size_t)location >= uniforms.size(), GL_INVALID_OPERATION, RC_RET_VOID);
3766 RC_IF_ERROR(uniforms[location].type != type, GL_INVALID_OPERATION, RC_RET_VOID);
3767 RC_IF_ERROR(count != 1, GL_INVALID_OPERATION, RC_RET_VOID); // \todo [2013-12-13 pyry] Array uniforms.
3771 DE_ASSERT(scalarSize*sizeof(deUint32) <= sizeof(uniforms[location].value));
3772 deMemcpy(&uniforms[location].value, v, scalarSize*(int)sizeof(deUint32));
3780 std::vector<sglr::UniformSlot>& uniforms = m_currentProgram->m_program->m_uniforms;
3785 RC_IF_ERROR(location < 0 || (size_t)location >= uniforms.size(), GL_INVALID_OPERATION, RC_RET_VOID);
3786 RC_IF_ERROR(count != 1, GL_INVALID_OPERATION, RC_RET_VOID); // \todo [2013-12-13 pyry] Array uniforms.
3788 switch (uniforms[location].type)
3790 case glu::TYPE_INT: uniforms[location].value.i = *v; return;
3808 uniforms[location].value.i = *v;
3866 std::vector<sglr::UniformSlot>& uniforms = m_currentProgram->m_program->m_uniforms;
3871 RC_IF_ERROR(location < 0 || (size_t)location >= uniforms.size(), GL_INVALID_OPERATION, RC_RET_VOID);
3878 switch (uniforms[location].type)
3886 uniforms[location].value.m3[row*3+col] = value[col*3+row];
3890 uniforms[location].value.m3[row*3+col] = value[row*3+col];
3904 std::vector<sglr::UniformSlot>& uniforms = m_currentProgram->m_program->m_uniforms;
3909 RC_IF_ERROR(location < 0 || (size_t)location >= uniforms.size(), GL_INVALID_OPERATION, RC_RET_VOID);
3916 switch (uniforms[location].type)
3924 uniforms[location].value.m4[row*3+col] = value[col*3+row];
3928 uniforms[location].value.m4[row*3+col] = value[row*3+col];
3943 std::vector<sglr::UniformSlot>& uniforms = shaderProg->m_program->m_uniforms;
3945 for (size_t i = 0; i < uniforms.size(); ++i)
3946 if (name && deStringEqual(uniforms[i].name.c_str(), name))