tree: 725c63a7f4f0bc8581aef20a8cc979da6068d37d [search]
  1. src/
  2. Cargo.toml
  3. README.md
vello_gpu/examples/winit/README.md

Vello GPU Winit Example

Run with:

cargo run -p vello_gpu_winit --release

Optionally, you can pass in paths to SVG files that you want to render:

cargo run -p vello_gpu_winit --release -- [SVG FILES]

Alternatively, you can pass a scene index to render a specific scene from the built-in set:

cargo run -p vello_gpu_winit --release -- [SCENE INDEX]

Controls

  • Mouse drag-and-drop will translate the image.
  • Mouse scroll wheel will zoom.
  • Arrow keys switch between SVG images in the current set.
  • Space resets the position and zoom of the image.
  • Escape exits the program.