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

Method AddImmediateGlobalDefinition

src/GLSLCompiler.cpp:104–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected