[Impeller] Delete unnecessary special casing for Vulkan in framebuffer fetch. (flutter/engine#50251)

The code generated is functionally identical (http://tinyurl.com/yov6m8ac).
This commit is contained in:
Chinmay Garde
2024-02-01 13:12:34 -08:00
committed by GitHub
parent 5d6ea1d82f
commit 336c5ca450

View File

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