MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / process

Method process

Source/Engine/ShadersCompilation/Parser/ShaderProcessing.cpp:68–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68bool ShaderProcessing::Parser::process()
69{
70 const Token defineToken("#define");
71
72 // Read whole source code
73 Token token;
74 while (text.CanRead())
75 {
76 text.ReadToken(&token);
77
78 // Preprocessor definition
79 if (token == defineToken)
80 {
81 // Skip
82 text.ReadLine();
83 }
84 else
85 {
86 // Call children
87 ProcessChildren(token, this);
88 }
89 }
90
91 return false;
92}
93
94bool ShaderProcessing::Parser::collectResults(ShaderMeta* result)
95{

Callers 2

TickMethod · 0.45
ConvertBasisUniversalMethod · 0.45

Calls 2

ReadTokenMethod · 0.80
ReadLineMethod · 0.80

Tested by

no test coverage detected