@@ -54,7 +54,8 @@ static std::optional<Entity> AdvancedBlend(
5454 return std::nullopt ;
5555 }
5656
57- auto dst_snapshot = inputs[0 ]->GetSnapshot (renderer, entity);
57+ auto dst_snapshot =
58+ inputs[0 ]->GetSnapshot (" AdvancedBlend(Dst)" , renderer, entity);
5859 if (!dst_snapshot.has_value ()) {
5960 return std::nullopt ;
6061 }
@@ -67,7 +68,8 @@ static std::optional<Entity> AdvancedBlend(
6768 std::optional<Snapshot> src_snapshot;
6869 std::array<Point, 4 > src_uvs;
6970 if (!foreground_color.has_value ()) {
70- src_snapshot = inputs[1 ]->GetSnapshot (renderer, entity);
71+ src_snapshot =
72+ inputs[1 ]->GetSnapshot (" AdvancedBlend(Src)" , renderer, entity);
7173 if (!src_snapshot.has_value ()) {
7274 if (!dst_snapshot.has_value ()) {
7375 return std::nullopt ;
@@ -188,7 +190,8 @@ std::optional<Entity> BlendFilterContents::CreateForegroundAdvancedBlend(
188190 BlendMode blend_mode,
189191 std::optional<Scalar> alpha,
190192 bool absorb_opacity) const {
191- auto dst_snapshot = input->GetSnapshot (renderer, entity);
193+ auto dst_snapshot =
194+ input->GetSnapshot (" ForegroundAdvancedBlend" , renderer, entity);
192195 if (!dst_snapshot.has_value ()) {
193196 return std::nullopt ;
194197 }
@@ -353,7 +356,8 @@ std::optional<Entity> BlendFilterContents::CreateForegroundPorterDuffBlend(
353356 BlendMode blend_mode,
354357 std::optional<Scalar> alpha,
355358 bool absorb_opacity) const {
356- auto dst_snapshot = input->GetSnapshot (renderer, entity);
359+ auto dst_snapshot =
360+ input->GetSnapshot (" ForegroundPorterDuffBlend" , renderer, entity);
357361 if (!dst_snapshot.has_value ()) {
358362 return std::nullopt ;
359363 }
@@ -477,7 +481,8 @@ static std::optional<Entity> PipelineBlend(
477481 using VS = BlendPipeline::VertexShader;
478482 using FS = BlendPipeline::FragmentShader;
479483
480- auto dst_snapshot = inputs[0 ]->GetSnapshot (renderer, entity);
484+ auto dst_snapshot =
485+ inputs[0 ]->GetSnapshot (" PipelineBlend(Dst)" , renderer, entity);
481486
482487 ContentContext::SubpassCallback callback = [&](const ContentContext& renderer,
483488 RenderPass& pass) {
@@ -544,7 +549,8 @@ static std::optional<Entity> PipelineBlend(
544549
545550 for (auto texture_i = inputs.begin () + 1 ; texture_i < inputs.end ();
546551 texture_i++) {
547- auto src_input = texture_i->get ()->GetSnapshot (renderer, entity);
552+ auto src_input = texture_i->get ()->GetSnapshot (" PipelineBlend(Src)" ,
553+ renderer, entity);
548554 if (!add_blend_command (src_input)) {
549555 return true ;
550556 }
0 commit comments