|
|
@@ -205,7 +205,7 @@ begin |
|
|
|
sr := TengSearchResults.Create; |
|
|
|
walker := TengSearchWalker.Create(sr); |
|
|
|
try |
|
|
|
walker.SearchFlags := [sfSearchChildren, sfEvaluateIf]; |
|
|
|
walker.SearchFlags := [sfSearchChildren, sfEvaluateIf, sfSearchInherited]; |
|
|
|
walker.ResultTypes := CengShaderPartArr.Create(TengShaderPartMain); |
|
|
|
walker.ChildrenDoNotLeave := CengShaderPartArr.Create(TengShaderGenerator); |
|
|
|
walker.ChildrenForceLeave := CengShaderPartArr.Create(TengShaderFile); |
|
|
@@ -221,17 +221,17 @@ begin |
|
|
|
args.PopFlags; |
|
|
|
end; |
|
|
|
end; |
|
|
|
|
|
|
|
args.GenerateProcedureCode; |
|
|
|
args.GenerateParameterCode(CengShaderPartArr.Create(TengShaderPartVar)); |
|
|
|
args.GenerateParameterCode(CengShaderPartArr.Create(TengShaderPartVarying)); |
|
|
|
args.GenerateParameterCode(CengShaderPartArr.Create(TengShaderPartUniform)); |
|
|
|
finally |
|
|
|
FreeAndNil(walker); |
|
|
|
FreeAndNil(sr); |
|
|
|
args.PopCode([pcfAppend, pcfAddEmptyLine]); |
|
|
|
end; |
|
|
|
|
|
|
|
args.GenerateProcedureCode; |
|
|
|
args.GenerateParameterCode(CengShaderPartArr.Create(TengShaderPartVar)); |
|
|
|
args.GenerateParameterCode(CengShaderPartArr.Create(TengShaderPartVarying)); |
|
|
|
args.GenerateParameterCode(CengShaderPartArr.Create(TengShaderPartUniform)); |
|
|
|
|
|
|
|
args.PushCode; |
|
|
|
try |
|
|
|
args.GenerateMetaCode; |
|
|
|