MCPcopy Create free account
hub / github.com/cinder/Cinder / parse

Method parse

src/cinder/gl/ShaderPreprocessor.cpp:171–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171string ShaderPreprocessor::parse( const fs::path &sourcePath, std::set<fs::path> *includedFiles )
172{
173 const fs::path fullPath = findFullPath( sourcePath, "" );
174 if( fullPath.empty() ) {
175 throw ShaderPreprocessorExc( "could not find shader at source path: " + sourcePath.string() );
176 }
177
178 string source = loadString( loadFile( fullPath ) );
179 return parse( source, sourcePath, includedFiles );
180}
181
182string ShaderPreprocessor::parse( const std::string &source, const fs::path &sourcePath, set<fs::path> *includedFiles )
183{

Callers 1

loadShaderMethod · 0.45

Calls 6

loadStringFunction · 0.85
loadFileFunction · 0.85
parseFunction · 0.50
emptyMethod · 0.45
stringMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected