Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions impeller/entity/shaders/blending/framebuffer_blend.frag
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down