commit | f8f9cd84fa0483de1b7d408859c4e8ae84817f16 | [log] [tgz] |
---|---|---|
author | Kevin Lubick <kjlubick@google.com> | Fri Feb 21 08:26:59 2020 -0500 |
committer | Kevin Lubick <kjlubick@google.com> | Fri Feb 21 14:43:01 2020 +0000 |
tree | 44abb551e8f33e0a9da0e66649022675cd25125c | |
parent | bf5cb0f539e7b7485bda9c1377f663d6c444d2f4 [diff] |
[canvaskit] Expose bindings to particles uniforms. Uniforms in the general case can be multiple floats, so we expose a small struct to provide information about all uniforms (including the built in ones like "dt") as well as effectUniforms and particleUniforms which return Float32Arrays bound to the WASM memory containing those unifroms. Thus, by modifying the Float32Array, one can directly affect the particle/effect properties. This allows us to expose sliders on particles.skia.org (https://skia-review.googlesource.com/c/buildbot/+/272398) Change-Id: Ie390f3d2dc571ee4ebaab59a7fa1b7b2dc24d871 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/272377 Reviewed-by: Brian Osman <brianosman@google.com>