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

Method reflect

Source/RenderPasses/ErrorMeasurePass/ErrorMeasurePass.cpp:120–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120RenderPassReflection ErrorMeasurePass::reflect(const CompileData& compileData)
121{
122 RenderPassReflection reflector;
123 reflector.addInput(kInputChannelSourceImage, "Source image");
124 reflector.addInput(kInputChannelReferenceImage, "Reference image (optional)").flags(RenderPassReflection::Field::Flags::Optional);
125 reflector.addInput(kInputChannelWorldPosition, "World-space position").flags(RenderPassReflection::Field::Flags::Optional);
126 // TODO: when compile() is available, match the format of the source image?
127 reflector.addOutput(kOutputChannelImage, "Output image").format(ResourceFormat::RGBA32Float);
128 return reflector;
129}
130
131void ErrorMeasurePass::execute(RenderContext* pRenderContext, const RenderData& renderData)
132{

Callers

nothing calls this directly

Calls 2

addOutputMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected