| 422 | } |
| 423 | |
| 424 | bool RenderGraph::compile(RenderContext* pRenderContext, std::string& log) |
| 425 | { |
| 426 | if (!mRecompile) |
| 427 | return true; |
| 428 | mpExe = nullptr; |
| 429 | |
| 430 | try |
| 431 | { |
| 432 | mpExe = RenderGraphCompiler::compile(*this, pRenderContext, mCompilerDeps); |
| 433 | mRecompile = false; |
| 434 | return true; |
| 435 | } |
| 436 | catch (const std::exception& e) |
| 437 | { |
| 438 | log = e.what(); |
| 439 | return false; |
| 440 | } |
| 441 | } |
| 442 | |
| 443 | void RenderGraph::execute(RenderContext* pRenderContext) |
| 444 | { |