From 5d923ac4f9a8c2c5efaa9890350909136495c82c Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Mon, 24 May 2021 00:22:31 -0700 Subject: [PATCH] Dump stage outputs. --- engine/src/flutter/impeller/compiler/reflector.cc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/engine/src/flutter/impeller/compiler/reflector.cc b/engine/src/flutter/impeller/compiler/reflector.cc index 7f656f666e..f7f2d87e7c 100644 --- a/engine/src/flutter/impeller/compiler/reflector.cc +++ b/engine/src/flutter/impeller/compiler/reflector.cc @@ -222,7 +222,19 @@ static std::shared_ptr ReflectTemplateArguments( writer.StartArray(); for (const auto& input : compiler.get_shader_resources().stage_inputs) { if (!ReflectStageInput(writer, compiler, input)) { - FML_LOG(ERROR) << "Could not reflect uniform buffer."; + FML_LOG(ERROR) << "Could not reflect stage input."; + return nullptr; + } + } + writer.EndArray(); + } + + { + writer.Key("stage_outputs"); + writer.StartArray(); + for (const auto& output : compiler.get_shader_resources().stage_outputs) { + if (!ReflectStageInput(writer, compiler, output)) { + FML_LOG(ERROR) << "Could not reflect stage output."; return nullptr; } }