Lines Matching refs:glu

99 typedef std::string (*BasicTypeVisitFunc)(const std::string& name, glu::DataType type, int indentationDepth); //!< See glslTraverseBasicTypes below.
119 const glu::VarType& rootType,
138 const glu::StructType& structType = *rootType.getStructPtr();
144 const glu::StructMember& member = structType.getMember(membNdx);
158 std::string glslAssignBasicTypeObject (const std::string& name, const glu::DataType type, const int indentationDepth)
160 const int scalarSize = glu::getDataTypeScalarSize(type);
166 if (type != glu::TYPE_FLOAT)
167 result << std::string() << glu::getDataTypeName(type) << "(";
170 if (type != glu::TYPE_FLOAT)
178 std::string glslCheckBasicTypeObject (const std::string& name, const glu::DataType type, const int indentationDepth)
180 const int scalarSize = glu::getDataTypeScalarSize(type);
184 result << indentation << "allOk = allOk && compare_" << glu::getDataTypeName(type) << "(" << name << ", ";
186 if (type != glu::TYPE_FLOAT)
187 result << std::string() << glu::getDataTypeName(type) << "(";
190 if (type != glu::TYPE_FLOAT)
224 int numBasicSubobjects (const glu::VarType& type)
232 const glu::StructType& structType = *type.getStructPtr();
248 Variable (const std::string& name_, const glu::VarType& type, const bool isArray)
266 glu::VarType m_type; //!< If this Variable is an array element, m_type is the element type; otherwise just the variable type.
273 return de::toString(glu::declare(m_type, m_name)) + ";\n";
279 return de::toString(glu::declare(m_type, m_name)) + "[" + sizeExpr + "];\n";
288 const glu::VarType type = traverseAsArray ? glu::VarType(m_type, numArrayElements) : m_type;
306 const glu::VarType type = m_isArray ? glu::VarType(m_type, arraySize) : m_type;
309 for (glu::BasicTypeIterator basicIt = glu::BasicTypeIterator::begin(&type); basicIt != glu::BasicTypeIterator::end(&type); ++basicIt)
312 return m_name + de::toString(glu::TypeAccessFormat(type, basicIt.getPath()));
325 glu::VarType type;
327 Member (const std::string& n, const glu::VarType& t) : name(n), type(t) {}
359 buf << "\t" << glu::declare(m_members[i].type, m_members[i].name) << ";\n";
373 buf << "\t" << glu::declare(m_members[i].type, m_members[i].name) << ";\n";
424 const glu::VarType& membType = m_members[memberNdx].type;
425 for (glu::BasicTypeIterator basicIt = glu::BasicTypeIterator::begin(&membType); basicIt != glu::BasicTypeIterator::end(&membType); ++basicIt)
428 return m_interfaceName + "[" + de::toString(arrayNdx) + "]." + m_members[memberNdx].name + de::toString(glu::TypeAccessFormat(membType, basicIt.getPath()));
446 std::vector<glu::StructType> m_structTypes;
494 m_structTypes.push_back(glu::StructType("S"));
496 const glu::VarType highpFloat (glu::TYPE_FLOAT, glu::PRECISION_HIGHP);
497 glu::StructType& structType = m_structTypes.back();
498 const glu::VarType structVarType (&structType);
501 structType.addMember("x", glu::VarType(glu::TYPE_INT, glu::PRECISION_HIGHP));
502 structType.addMember("y", glu::VarType(glu::TYPE_FLOAT_VEC4, glu::PRECISION_HIGHP));
506 structType.addMember("z", glu::VarType(highpFloat, 2));
518 blockMembers.push_back(IOBlock::Member("blockFa", glu::VarType(highpFloat, 3)));
519 blockMembers.push_back(IOBlock::Member("blockSa", glu::VarType(structVarType, 2)));
546 tcsDeclarations << de::toString(glu::declare(structType)) + ";\n";
593 tesDeclarations << de::toString(glu::declare(structType)) << ";\n";
643 src << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES) << "\n"
653 programCollection.glslSources.add("vert") << glu::VertexSource(src.str());
659 src << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES) << "\n"
685 programCollection.glslSources.add("tesc") << glu::TessellationControlSource(src.str());
691 src << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES) << "\n"
726 programCollection.glslSources.add("tese") << glu::TessellationEvaluationSource(src.str());
732 src << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES) << "\n"
742 programCollection.glslSources.add("frag") << glu::FragmentSource(src.str());