[Impeller] Create a fixed-stop gradient variant for SSBOs #119365
Labels
e: impeller
Impeller rendering backend issues and features requests
engine
flutter/engine repository. See also e: labels.
P2
Important issues not at the top of the work list
team-engine
Owned by Engine team
triaged-engine
Triaged by Engine team
In order to support arbitrary stops, the gradient fragment shaders interate over the stop data (see flutter/engine#39174). This is more expensive than it needs to be in cases where we know the stops are evenly spaced - the exact colors can be looked up and lerp'd. We can quickly compute this in the entity contents and set a uniform value and branch, but today that will likely lead to most shaders executing both branches.
This should be done with shader variants following #119357
The text was updated successfully, but these errors were encountered: