MCPcopy Create free account
hub / github.com/dfranx/ShaderDebugger / m_convertBaseType

Method m_convertBaseType

src/GLSLCompiler.cpp:1318–1329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected