engine
engine copied to clipboard
[Flutter GPU] Add DeviceBuffer.flush & GpuContext.getMinimumUniformByteAlignment.
Part of https://github.com/flutter/flutter/issues/150953.
Provide a way to get the required minimum uniform byte alignment when referencing uniform blocks in a device buffer. Allow the user to explicitly flush DeviceBuffers (necessary for devices without shared memory).