| 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 | |
| 1081 | void PruneTree(HLSLTree *tree, const char *entryName0, const char *entryName1 /*=NULL*/) |
nothing calls this directly
no test coverage detected