[forma] Implement GPU gradient.

Make each style in the buffer variable in size.

Change-Id: I9af48582eea40cbbb63fe60eecef779ed9551fa2
Reviewed-on: https://fuchsia-review.googlesource.com/c/forma/+/689484
Reviewed-by: DragoČ™ Tiselice <dtiselice@google.com>
3 files changed
tree: 792043f54af2a5d7ffabab851906ebaf6717c865
  1. .cargo/
  2. assets/
  3. benches/
  4. demo/
  5. gpu/
  6. pristine/
  7. web/
  8. .gitignore
  9. AUTHORS
  10. Cargo.toml
  11. clone.sh
  12. CONTRIBUTING.md
  13. LICENSE
  14. PATENTS
  15. presubmit.sh
  16. README.md
README.md

forma. The parallel CPU vector renderer

forma is a highly efficient vector content renderer that makes use of all processor cores and vector units.

Getting started

Requirements:

Clone the forma repositories from Fuchsia by running:

./clone.sh

Build the demo:

RUSFTLAGS="-C target-cpu=native" cargo build --release

Then run:

./target/release/demo rive assets/rive/juice.riv