Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Impeller] use native decal on metal and Vulkan backend #40723

Merged
merged 9 commits into from Mar 30, 2023

Conversation

jonahwilliams
Copy link
Member

@jonahwilliams jonahwilliams commented Mar 28, 2023

Fixes flutter/flutter#123619

Implements the decal tile mode with a clamp to border w/ transparent black border color. Should perform better by removing extra ops in the fragment shaders. This could be measurable in the blur case.

@chinmaygarde chinmaygarde changed the title [Impeller] use native decal on iOS [Impeller] use native decal on iOS. Mar 28, 2023
@jonahwilliams jonahwilliams changed the title [Impeller] use native decal on iOS. [Impeller] use native decal on metal and Vulkan backend Mar 29, 2023
.setAddressModeU(address_mode_u)
.setAddressModeV(address_mode_v)
.setAddressModeW(address_mode_w)
.setBorderColor(vk::BorderColor::eFloatTransparentBlack)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect that setting the border color if clamp to border isn't set should have no impact but I have not verified this yet.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't run vulkan right now :(

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified that this works on Vulkan without extensions.

@jonahwilliams jonahwilliams marked this pull request as ready for review March 29, 2023 04:38
.setAddressModeU(address_mode_u)
.setAddressModeV(address_mode_v)
.setAddressModeW(address_mode_w)
.setBorderColor(vk::BorderColor::eFloatTransparentBlack)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified that this works on Vulkan without extensions.

@jonahwilliams jonahwilliams added the autosubmit Merge PR when tree becomes green via auto submit App label Mar 30, 2023
@auto-submit auto-submit bot merged commit 571c5de into flutter:main Mar 30, 2023
37 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App e: impeller
Projects
No open projects
Archived in project
2 participants