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

Method VisitType

hlslparser/src/HLSLTree.cpp:1058–1078  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1056 }
1057
1058 virtual void VisitType(HLSLType &type) override
1059 {
1060 // if (type.array)
1061 // {
1062 // // Alec added this to try to handle structs with array constants, but
1063 // // it causes other issues. VisitStructField calls VisitType.
1064 //
1065 // // handle sized or unsized array, since sized may use constant
1066 // // VisitExpression(type.arraySize);
1067 // int bp = 0;
1068 // bp = bp;
1069 // }
1070 // else
1071 if (type.baseType == HLSLBaseType_UserDefined) {
1072 HLSLStruct *globalStruct = tree->FindGlobalStruct(type.typeName);
1073 if (globalStruct != NULL) {
1074 globalStruct->hidden = false;
1075 VisitStruct(globalStruct);
1076 }
1077 }
1078 }
1079};
1080
1081void PruneTree(HLSLTree *tree, const char *entryName0, const char *entryName1 /*=NULL*/)

Callers

nothing calls this directly

Calls 1

FindGlobalStructMethod · 0.80

Tested by

no test coverage detected