Home | History | Annotate | Download | only in opengl

Lines Matching refs:decl

326 std::ostream& operator<< (std::ostream& str, const VariableDeclaration& decl)
328 if (decl.layout != Layout())
329 str << decl.layout << " ";
332 if (decl.memoryAccessQualifierBits & (1 << bitNdx))
335 if (decl.interpolation != INTERPOLATION_LAST)
336 str << getInterpolationName(decl.interpolation) << " ";
338 if (decl.storage != STORAGE_LAST)
339 str << getStorageName(decl.storage) << " ";
341 str << declare(decl.varType, decl.name);
346 namespace decl
356 std::ostream& operator<< (std::ostream& str, const DeclareVariable& decl)
358 const VarType& type = decl.varType;
382 str << declare(structPtr, decl.indentLevel); // Generate inline declaration.
387 str << " " << decl.name;
402 std::ostream& operator<< (std::ostream& str, const DeclareStructTypePtr& decl)
407 if (decl.structPtr->hasTypeName())
408 str << " " << decl.structPtr->getTypeName();
410 str << "\n" << indent(decl.indentLevel) << "{\n";
412 for (StructType::ConstIterator memberIter = decl.structPtr->begin(); memberIter != decl.structPtr->end(); memberIter++)
414 str << indent(decl.indentLevel+1);
415 str << declare(memberIter->getType(), memberIter->getName(), decl.indentLevel+1) << ";\n";
418 str << indent(decl.indentLevel) << "}";
423 std::ostream& operator<< (std::ostream& str, const DeclareStructType& decl)
425 return str << declare(&decl.structType, decl.indentLevel);
428 } // decl