mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 14:51:15 +00:00
![]() Move fields out of the HighLevelRenderingPrimitive that are suitable to represent as uniform variables. That reduces fields like Image or Rectangle to their image or dimension, and only if *they* change, then we re-do the work of building geometry and uploading it to the GPU. Instead, the typically animated properties such as the position or the color are passed separately with each draw call. This avoids re-decoding PNG files and uploading them again when moving an image element around on the screen. |
||
---|---|---|
.. | ||
src | ||
.gitignore | ||
Cargo.toml | ||
index.html | ||
logo.png | ||
README |
To try the WASM build, use these steps: cargo build --target wasm32-unknown-unknown --bin graphicstest cd examples/graphicstest mkdir -p generated wasm-bindgen ../../target/wasm32-unknown-unknown/debug/graphicstest.wasm --out-dir generated --no-modules cp index.html generated/ Then serve for example with cd generated/ python -m SimpleHTTPServer and go to http://localhost:8000/index.html