Part of #188474.
DeviceBuffer can only bind as a uniform today. Compute and storage workflows need a storage-buffer binding, and Shader needs to expose storage slots reflected from the bundle.
Changes
Testing
Bind a storage buffer in a render shader and read it back, the simplest path that needs no compute.
Dependencies
#188477.
Part of #188474.
DeviceBuffercan only bind as a uniform today. Compute and storage workflows need a storage-buffer binding, andShaderneeds to expose storage slots reflected from the bundle.Changes
DeviceBufferand the native glue inlib/gpu.Shaderexposes storage slots, reading the bundle fields from [Flutter GPU] shader bundle carries compute workgroup size and storage buffer bindings #188477.Testing
Bind a storage buffer in a render shader and read it back, the simplest path that needs no compute.
Dependencies
#188477.