| 1316 | } |
| 1317 | |
| 1318 | ag::Type GLSLCompiler::m_convertBaseType(const std::string& str) |
| 1319 | { |
| 1320 | if (str == "float") return ag::Type::Float; |
| 1321 | if (str == "int") return ag::Type::Int; |
| 1322 | if (str == "bool") return ag::Type::UChar; |
| 1323 | if (str == "uint") return ag::Type::UInt; |
| 1324 | |
| 1325 | // TODO: oops, BlueVM doesn't support doubles (?) |
| 1326 | if (str == "double") return ag::Type::Float; |
| 1327 | |
| 1328 | return ag::Type::Void; |
| 1329 | } |
| 1330 | |
| 1331 | |
| 1332 | void GLSLCompiler::translateSequence(glsl::astSequenceExpression *expression) { |
nothing calls this directly
no outgoing calls
no test coverage detected