| 169 | } |
| 170 | |
| 171 | string 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 | |
| 182 | string ShaderPreprocessor::parse( const std::string &source, const fs::path &sourcePath, set<fs::path> *includedFiles ) |
| 183 | { |
no test coverage detected