mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fixes https://github.com/flutter/flutter/issues/122823 Fixes https://github.com/flutter/flutter/issues/129659 Fixes https://github.com/flutter/flutter/issues/123741 This patch makes runtime stage/fragment program stuff work on Vulkan for Android. It will need flutter/flutter#140976 for that to become a reality for flutter_tools users. Compiling with relaxed Vulkan semantics still has an issue: shaders that use `sampler2D` with an explicitly set `location` on the `layout` will fail to compile with an error documented in https://github.com/flutter/flutter/issues/141219. I think there might still be some issues with fragment programs on Vulkan, but this should at least be a good starting point and unblocks ink_sparkle.frag usage in the framework. I've deleted some runtime_stage related code that would never get used - for example, enum related code that indicates we might support a bunch of data types that we do not and probably never will support in this API.