| 102 | |
| 103 | } |
| 104 | void GLSLCompiler::AddImmediateGlobalDefinition(Variable var) |
| 105 | { |
| 106 | for (size_t i = 0; i < sizeof(kTypes) / sizeof(kTypes[0]); i++) { |
| 107 | if (strcmp(kTypes[i], var.Type.c_str()) == 0) { |
| 108 | int type = kTypeValues[i]; |
| 109 | if (type != glsl::kKeyword_struct) { |
| 110 | m_immGlobals.push_back(std::make_pair(var.Name, std::make_pair(type, ""))); |
| 111 | return; |
| 112 | } |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | m_immGlobals.push_back(std::make_pair(var.Name, std::make_pair((int)glsl::kKeyword_struct, var.Type.c_str()))); |
| 117 | } |
| 118 | |
| 119 | void GLSLCompiler::translateOperator(int op) { |
| 120 | switch (op) |
nothing calls this directly
no outgoing calls
no test coverage detected