Lines Matching defs:location
371 void setUniformValue (int location, rsg::ConstValueAccess value)
381 case 1: glUniform1fv(location, 1, (float*)value.value().getValuePtr()); break;
382 case 2: glUniform2fv(location, 1, (float*)value.value().getValuePtr()); break;
383 case 3: glUniform3fv(location, 1, (float*)value.value().getValuePtr()); break;
384 case 4: glUniform4fv(location, 1, (float*)value.value().getValuePtr()); break;
395 case 1: glUniform1iv(location, 1, (int*)value.value().getValuePtr()); break;
396 case 2: glUniform2iv(location, 1, (int*)value.value().getValuePtr()); break;
397 case 3: glUniform3iv(location, 1, (int*)value.value().getValuePtr()); break;
398 case 4: glUniform4iv(location, 1, (int*)value.value().getValuePtr()); break;
491 GLint location = glGetAttribLocation(program.getProgram(), attribIter->getName());
494 log << tcu::TestLog::Message << "attribute[" << location << "]: " << attribIter->getName() << " = " << attribIter->getValueRange() << tcu::TestLog::EndMessage;
496 if (location >= 0)
498 glVertexAttribPointer(location, attribIter->getNumComponents(), GL_FLOAT, GL_FALSE, 0, &attribIter->getVertices()[0]);
499 glEnableVertexAttribArray(location);
507 GLint location = glGetUniformLocation(program.getProgram(), uniformIter->getVariable()->getName());
509 log << tcu::TestLog::Message << "uniform[" << location << "]: " << uniformIter->getVariable()->getName() << " = " << uniformIter->getValue() << tcu::TestLog::EndMessage;
511 if (location >= 0)
512 setUniformValue(location, uniformIter->getValue());