Switched blend modes for demo.

Instead of doing more work reverting the pre-multiplied
colors and then letting wgpu apply alpha, we simply use
our pre-multiplied values, replacing the ones in the buffer.

Change-Id: Iee911c3c24f8c161702de9706a313f64f9927fc8
2 files changed
tree: cc7bfb40efc94489668831a26b125672febd8969
  1. assets/
  2. benches/
  3. demo/
  4. pristine/
  5. .gitignore
  6. AUTHORS
  7. Cargo.toml
  8. clone.sh
  9. CONTRIBUTING.md
  10. LICENSE
  11. PATENTS
  12. presubmit.sh
  13. 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