Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 4884dff

Browse files
authored
[Impeller] Delete unnecessary special casing for Vulkan in framebuffer fetch. (#50251)
The code generated is functionally identical (http://tinyurl.com/yov6m8ac).
1 parent dd4c79a commit 4884dff

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

impeller/entity/shaders/blending/framebuffer_blend.frag

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,13 @@
1616
layout(constant_id = 0) const float blend_type = 0;
1717
layout(constant_id = 1) const float supports_decal = 1;
1818

19-
#ifdef IMPELLER_TARGET_VULKAN
20-
layout(set = 0,
21-
binding = 0,
22-
input_attachment_index = 0) uniform subpassInputMS uSub;
19+
layout(input_attachment_index = 0) uniform subpassInputMS uSub;
2320

2421
vec4 ReadDestination() {
2522
return (subpassLoad(uSub, 0) + subpassLoad(uSub, 1) + subpassLoad(uSub, 2) +
2623
subpassLoad(uSub, 3)) /
2724
vec4(4.0);
2825
}
29-
#else
30-
layout(set = 0,
31-
binding = 0,
32-
input_attachment_index = 0) uniform subpassInput uSub;
33-
34-
vec4 ReadDestination() {
35-
return subpassLoad(uSub);
36-
}
37-
#endif // IMPELLER_TARGET_VULKAN
3826

3927
uniform sampler2D texture_sampler_src;
4028

0 commit comments

Comments
 (0)