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

Conversation

@jonahwilliams
Copy link
Contributor

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

jonahwilliams added 2 commits March 28, 2023 13:16
@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
Contributor 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
Contributor 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 added 2 commits March 28, 2023 20:26
@jonahwilliams jonahwilliams marked this pull request as ready for review March 29, 2023 04:38
@jonahwilliams jonahwilliams requested a review from bdero March 29, 2023 19:01
.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
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App e: impeller

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

[Impeller] implement native support for decal sampling on metal backend

2 participants