| 609 | } |
| 610 | |
| 611 | ref<Resource> RenderGraph::getOutput(const std::string& name) |
| 612 | { |
| 613 | if (mRecompile) |
| 614 | FALCOR_THROW("Can't fetch the output '{}'. The graph wasn't successfuly compiled yet.", name); |
| 615 | |
| 616 | str_pair strPair; |
| 617 | getRenderPassAndNamePair(false, name, strPair); |
| 618 | |
| 619 | uint32_t passIndex = getPassIndex(strPair.first); |
| 620 | GraphOut thisOutput = {passIndex, strPair.second}; |
| 621 | bool isOutput = isGraphOutput(thisOutput); |
| 622 | if (!isOutput) |
| 623 | FALCOR_THROW("Can't fetch the output '{}'. The resource is wasn't marked as an output.", name); |
| 624 | |
| 625 | return mpExe->getResource(name); |
| 626 | } |
| 627 | |
| 628 | ref<Resource> RenderGraph::getOutput(uint32_t index) |
| 629 | { |