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

Method getAvailableOutputs

Source/Falcor/RenderGraph/RenderGraph.cpp:390–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388}
389
390std::vector<std::string> RenderGraph::getAvailableOutputs() const
391{
392 std::vector<std::string> outputs;
393
394 RenderPass::CompileData compileData;
395 compileData.defaultTexDims = mCompilerDeps.defaultResourceProps.dims;
396 compileData.defaultTexFormat = mCompilerDeps.defaultResourceProps.format;
397
398 for (const auto& node : mNodeData)
399 {
400 RenderPassReflection reflection = node.second.pPass->reflect(compileData);
401 for (size_t i = 0; i < reflection.getFieldCount(); i++)
402 {
403 const auto& f = *reflection.getField(i);
404 if (is_set(f.getVisibility(), RenderPassReflection::Field::Visibility::Output))
405 outputs.push_back(node.second.name + "." + f.getName());
406 }
407 }
408 return outputs;
409}
410
411std::vector<std::string> RenderGraph::getUnmarkedOutputs() const
412{

Callers 2

graphOutputsGuiMethod · 0.80
applyEditorChangesMethod · 0.80

Calls 5

getVisibilityMethod · 0.80
reflectMethod · 0.45
getFieldMethod · 0.45
push_backMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected