commit | ed687746f59eb305c0bb287b9106677d7bc08155 | [log] [tgz] |
---|---|---|
author | DragoČ™ Tiselice <dtiselice@google.com> | Fri Mar 25 13:30:21 2022 +0100 |
committer | DragoČ™ Tiselice <dtiselice@google.com> | Fri Mar 25 17:06:20 2022 +0100 |
tree | cc7bfb40efc94489668831a26b125672febd8969 | |
parent | 4735545517ee5e05375dc1b6a2a0f9d2a1c3d22a [diff] |
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
forma is a highly efficient vector content renderer that makes use of all processor cores and vector units.
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