| 118 | } |
| 119 | |
| 120 | RenderPassReflection 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 | |
| 131 | void ErrorMeasurePass::execute(RenderContext* pRenderContext, const RenderData& renderData) |
| 132 | { |