MCPcopy Create free account
hub / github.com/alecazam/kram / FindGlobalStruct

Method FindGlobalStruct

hlslparser/src/HLSLTree.cpp:163–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163HLSLStruct *HLSLTree::FindGlobalStruct(const char *name)
164{
165 HLSLStatement *statement = m_root->statement;
166 while (statement != NULL) {
167 if (statement->nodeType == HLSLNodeType_Struct) {
168 HLSLStruct *declaration = (HLSLStruct *)statement;
169 if (String_Equal(name, declaration->name)) {
170 return declaration;
171 }
172 }
173
174 statement = statement->nextStatement;
175 }
176
177 return NULL;
178}
179
180/* FX files
181HLSLTechnique * HLSLTree::FindTechnique(const char * name)

Callers 3

GenerateMethod · 0.80
PrepassMethod · 0.80
VisitTypeMethod · 0.80

Calls 1

String_EqualFunction · 0.85

Tested by

no test coverage detected