Lines Matching defs:attrib
66 deInt32 getBoundLocation (const map<string, deUint32>& bindings, const string& attrib)
68 std::map<string, deUint32>::const_iterator iter = bindings.find(attrib);
146 string generateToVec4Expression (const Attribute& attrib, int id=-1)
148 const string variableName(attrib.getName() + (attrib.getArraySize() != Attribute::NOT_ARRAY ? "[" + de::toString(id) + "]" : ""));
151 switch (attrib.getType().getGLTypeEnum())
487 const Attribute& attrib = attributes[attribNdx];
490 << "Type: " << attrib.getType().getName()
491 << ", Name: " << attrib.getName()
492 << (attrib.getLayoutLocation() != Attribute::LOC_UNDEF ? ", Layout location " + de::toString(attrib.getLayoutLocation()) : "")
533 const Attribute& attrib = attributes[attribNdx];
535 if (attrib.getName() == name)
537 if (type != attrib.getType().getGLTypeEnum())
541 << " expected " << glu::getShaderVarTypeStr(attrib.getType().getGLTypeEnum())
547 if (attrib.getArraySize() == Attribute::NOT_ARRAY)
557 if (size != attrib.getArraySize())
559 log << TestLog::Message << "Error: Wrong size " << size << " expected " << attrib.getArraySize() << TestLog::EndMessage;
581 const Attribute& attrib = attributes[attribNdx];
582 const bool isActive = attrib.getCondition() != Cond::COND_NEVER;
586 if (activeAttributes.find(attrib.getName()) == activeAttributes.end())
588 log << TestLog::Message << "Error: Active attribute " << attrib.getName() << " wasn't returned by glGetActiveAttrib()." << TestLog::EndMessage;
594 if (activeAttributes.find(attrib.getName()) != activeAttributes.end())
595 log << TestLog::Message << "Note: Inactive attribute " << attrib.getName() << " was returned by glGetActiveAttrib()." << TestLog::EndMessage;
608 const Attribute& attrib = attributes[attribNdx];
609 const deInt32 expectedLocation = (attrib.getLayoutLocation() != Attribute::LOC_UNDEF ? attrib.getLayoutLocation() : getBoundLocation(bindings, attrib.getName()));
610 const deInt32 location = gl.getAttribLocation(program, attrib.getName().c_str());
615 << location << " = glGetAttribLocation(program, \"" << attrib.getName() << "\")"
616 << (attrib.getCondition() != Cond::COND_NEVER && expectedLocation != Attribute::LOC_UNDEF ? ", expected " + de::toString(expectedLocation) : "")
619 if (attrib.getCondition() == Cond::COND_NEVER && location != -1)
622 if (attrib.getCondition() != Cond::COND_NEVER && expectedLocation != Attribute::LOC_UNDEF && expectedLocation != location)
625 isOk &= (attrib.getCondition() == Cond::COND_NEVER || expectedLocation == Attribute::LOC_UNDEF || expectedLocation == location);