Skip to content

Commit

Permalink
Remove vello_svg.
Browse files Browse the repository at this point in the history
  • Loading branch information
xorgy committed Mar 11, 2024
1 parent 2a8c7f2 commit f24f15a
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 330 deletions.
1 change: 0 additions & 1 deletion ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ The repository is structured as such:
- `tests/` - Helper code for writing tests; current has a single smoke test and not much else.
- `doc/` - Various documents detailing the vision for Vello as it was developed. This directory should probably be refactored away; adding to it not recommended.
- `examples/` - Example projects using Vello. Each example is its own crate, with its own dependencies. The simplest example is the `shapes` one.
- `integrations/vello_svg` - An SVG rendered based on Vello and usvg. Used in examples. May be moved to `crates/` in the future.
- `shader/` - This is where the magic happens. WGSL shaders that define the compute operations (often variations of prefix sum) that Vello does to render a scene.
- `shared/` - Shared types, functions and constants included in other shaders through non-standard `#import` preprocessor directives (see "Shader templating").
- `src/` - Code for the main `vello` crate.
Expand Down
2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ members = [
"crates/shaders",
"crates/tests",

"integrations/vello_svg",

"examples/headless",
"examples/with_winit",
"examples/with_bevy",
Expand Down
10 changes: 1 addition & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,6 @@ More formal benchmarks are on their way.

## Integrations

### SVG

This repository also includes [`vello_svg`](./integrations/vello_svg/), which supports converting a [`usvg`](https://crates.io/crates/usvg) `Tree` into a Vello scene.

This is currently incomplete; see its crate level documentation for more information.

This is used in the [winit](#winit) example for the SVG rendering.

### Lottie

A separate integration for playing Lottie animations is available through the [`velato`](https://github.com/linebender/velato) crate.
Expand All @@ -141,7 +133,7 @@ Examples must be selected using the `--package` (or `-p`) Cargo flag.
### Winit

Our [winit] example ([examples/with_winit](https://github.com/linebender/vello/tree/main/examples/with_winit)) demonstrates rendering to a [winit] window.
By default, this renders the [GhostScript Tiger] as well as all SVG files you add in the [examples/assets/downloads/](https://github.com/linebender/vello/tree/main/examples/assets/downloads) directory using [`vello_svg`](#svg).
By default, this renders the [GhostScript Tiger] as well as all SVG files you add in the [examples/assets/downloads/](https://github.com/linebender/vello/tree/main/examples/assets/downloads) directory.
A custom list of SVG file paths (and directories to render all SVG files from) can be provided as arguments instead.
It also includes a collection of test scenes showing the capabilities of `vello`, which can be shown with `--test-scenes`.

Expand Down
1 change: 0 additions & 1 deletion examples/scenes/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ workspace = true

[dependencies]
vello = { path = "../../" }
vello_svg = { path = "../../integrations/vello_svg" }
anyhow = { workspace = true }
clap = { workspace = true, features = ["derive"] }
image = "0.24.9"
Expand Down
1 change: 1 addition & 0 deletions examples/scenes/src/pico_svg.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright 2024 the Vello Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! A loader for a tiny fragment of SVG
use std::{num::ParseFloatError, str::FromStr};
Expand Down
16 changes: 0 additions & 16 deletions integrations/vello_svg/Cargo.toml

This file was deleted.

301 changes: 0 additions & 301 deletions integrations/vello_svg/src/lib.rs

This file was deleted.

0 comments on commit f24f15a

Please sign in to comment.