mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Adds two new APIs that insert memory barriers for compute -> compute dependencies. ```c++ // |ComputePass| void AddBufferMemoryBarrier() override; // |ComputePass| void AddTextureMemoryBarrier() override; ``` Also makes the ComputePassVK automatically insert a compute -> vertex dependency when encoding. This change is sufficient to let the GPU compute implementation of draw points work on Pixel and Samsung Android devices. For more explaination on these specific barriers, see the documentation added in this PR. Fixes https://github.com/flutter/engine/pull/49946