From 336c5ca450f136608bc0482318c1a38037c852ff Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Thu, 1 Feb 2024 13:12:34 -0800 Subject: [PATCH] [Impeller] Delete unnecessary special casing for Vulkan in framebuffer fetch. (flutter/engine#50251) The code generated is functionally identical (http://tinyurl.com/yov6m8ac). --- .../entity/shaders/blending/framebuffer_blend.frag | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/engine/src/flutter/impeller/entity/shaders/blending/framebuffer_blend.frag b/engine/src/flutter/impeller/entity/shaders/blending/framebuffer_blend.frag index 095d5e5bd6..6d03856b4a 100644 --- a/engine/src/flutter/impeller/entity/shaders/blending/framebuffer_blend.frag +++ b/engine/src/flutter/impeller/entity/shaders/blending/framebuffer_blend.frag @@ -16,25 +16,13 @@ layout(constant_id = 0) const float blend_type = 0; layout(constant_id = 1) const float supports_decal = 1; -#ifdef IMPELLER_TARGET_VULKAN -layout(set = 0, - binding = 0, - input_attachment_index = 0) uniform subpassInputMS uSub; +layout(input_attachment_index = 0) uniform subpassInputMS uSub; vec4 ReadDestination() { return (subpassLoad(uSub, 0) + subpassLoad(uSub, 1) + subpassLoad(uSub, 2) + subpassLoad(uSub, 3)) / vec4(4.0); } -#else -layout(set = 0, - binding = 0, - input_attachment_index = 0) uniform subpassInput uSub; - -vec4 ReadDestination() { - return subpassLoad(uSub); -} -#endif // IMPELLER_TARGET_VULKAN uniform sampler2D texture_sampler_src;