Lines Matching refs:value
371 void setUniformValue (int location, rsg::ConstValueAccess value)
376 switch (value.getType().getBaseType())
379 switch (value.getType().getNumElements())
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;
393 switch (value.getType().getNumElements())
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;
408 tcu::MessageBuilder& operator<< (tcu::MessageBuilder& message, rsg::ConstValueAccess value)
413 switch (value.getType().getBaseType())
424 int numElements = value.getType().getNumElements();
435 switch (value.getType().getBaseType())
437 case rsg::VariableType::TYPE_FLOAT: message << value.component(elementNdx).asFloat(); break;
438 case rsg::VariableType::TYPE_INT: message << value.component(elementNdx).asInt(); break;
439 case rsg::VariableType::TYPE_BOOL: message << (value.component(elementNdx).asBool() ? "true" : "false"); break;
440 case rsg::VariableType::TYPE_SAMPLER_2D: message << value.component(elementNdx).asInt(); break;
441 case rsg::VariableType::TYPE_SAMPLER_CUBE: message << value.component(elementNdx).asInt(); break;