Home | History | Annotate | Download | only in opengl

Lines Matching defs:decl

327 std::ostream& operator<< (std::ostream& str, const VariableDeclaration& decl)
329 if (decl.layout != Layout())
330 str << decl.layout << " ";
333 if (decl.memoryAccessQualifierBits & (1 << bitNdx))
336 if (decl.interpolation != INTERPOLATION_LAST)
337 str << getInterpolationName(decl.interpolation) << " ";
339 if (decl.storage != STORAGE_LAST)
340 str << getStorageName(decl.storage) << " ";
342 str << declare(decl.varType, decl.name);
347 namespace decl
357 std::ostream& operator<< (std::ostream& str, const DeclareVariable& decl)
359 const VarType& type = decl.varType;
383 str << declare(structPtr, decl.indentLevel); // Generate inline declaration.
388 str << " " << decl.name;
403 std::ostream& operator<< (std::ostream& str, const DeclareStructTypePtr& decl)
408 if (decl.structPtr->hasTypeName())
409 str << " " << decl.structPtr->getTypeName();
411 str << "\n" << indent(decl.indentLevel) << "{\n";
413 for (StructType::ConstIterator memberIter = decl.structPtr->begin(); memberIter != decl.structPtr->end(); memberIter++)
415 str << indent(decl.indentLevel+1);
416 str << declare(memberIter->getType(), memberIter->getName(), decl.indentLevel+1) << ";\n";
419 str << indent(decl.indentLevel) << "}";
424 std::ostream& operator<< (std::ostream& str, const DeclareStructType& decl)
426 return str << declare(&decl.structType, decl.indentLevel);
429 } // decl