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; } }