MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / getOutput

Method getOutput

Source/Falcor/RenderGraph/RenderGraph.cpp:611–626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

609}
610
611ref<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
628ref<Resource> RenderGraph::getOutput(uint32_t index)
629{

Callers 6

renderDebugWindowMethod · 0.45
onFrameRenderMethod · 0.45
captureOutputMethod · 0.45
frameMethod · 0.45
captureOutputMethod · 0.45
GPU_TESTFunction · 0.45

Calls 1

getResourceMethod · 0.45

Tested by 3

frameMethod · 0.36
captureOutputMethod · 0.36
GPU_TESTFunction · 0.36