diff --git a/Cargo.toml b/Cargo.toml index 5ab2ce7..660fa93 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,6 @@ members = ["examples/with_winit", "examples/with_bevy", "examples/run_wasm"] [workspace.package] edition = "2021" version = "0.1.0" -authors = ["piet-gpu developers"] [patch.crates-io] # Required for metal support to work on wgpu @@ -16,7 +15,6 @@ naga = { git = "https://github.com/gfx-rs/naga", rev = "ddcd5d3121150b2b1beee6e5 [package] name = "vello" version = "0.1.0" -authors = ["Raph Levien "] license = "MIT/Apache-2.0" edition = "2021" diff --git a/doc/vision.md b/doc/vision.md index 5e69862..6395c1f 100644 --- a/doc/vision.md +++ b/doc/vision.md @@ -2,6 +2,8 @@ Raph Levien, 2020-12-10 +Note: `vello` was previously called `piet-gpu`. + I’ve done several [blog posts](./blogs.md) about piet-gpu already, and more generally GPU compute, but this document is a little different in scope. Rather than showing off a prototype and presenting a research result, it will set forth a bold and ambitious plan for where this might go. I find this vision compelling, and it’s motivated me to spend a lot of energy mastering some difficult material. The grand vision is much more than one person can do, so I’ll do some of it myself and maybe inspire collaboration for the rest of it. The full vision for piet-gpu is a 2D rendering engine that is considerably faster, higher quality, and more flexible than the current state of the art, and runs on a wide variety of hardware. I’ll go into some detail about why I think this goal is possible and what kind of work is needed to get there. diff --git a/examples/run_wasm/Cargo.toml b/examples/run_wasm/Cargo.toml index ef47b50..a6f1bbf 100644 --- a/examples/run_wasm/Cargo.toml +++ b/examples/run_wasm/Cargo.toml @@ -1,7 +1,6 @@ [package] name = "run-wasm" version.workspace = true -authors.workspace = true edition.workspace = true publish = false diff --git a/examples/with_winit/Cargo.toml b/examples/with_winit/Cargo.toml index a11476a..0c22baa 100644 --- a/examples/with_winit/Cargo.toml +++ b/examples/with_winit/Cargo.toml @@ -1,7 +1,6 @@ [package] name = "with_winit" version.workspace = true -authors.workspace = true edition.workspace = true publish = false diff --git a/examples/with_winit/src/simple_text.rs b/examples/with_winit/src/simple_text.rs index 86da701..3fdbae1 100644 --- a/examples/with_winit/src/simple_text.rs +++ b/examples/with_winit/src/simple_text.rs @@ -1,4 +1,4 @@ -// Copyright 2022 The piet-gpu authors. +// Copyright 2022 The vello authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/examples/with_winit/src/test_scene.rs b/examples/with_winit/src/test_scene.rs index 2dd81cd..c901af1 100644 --- a/examples/with_winit/src/test_scene.rs +++ b/examples/with_winit/src/test_scene.rs @@ -280,7 +280,7 @@ pub fn render_anim_frame(sb: &mut SceneBuilder, text: &mut SimpleText, i: usize) &rect, ); let text_size = 60.0 + 40.0 * (0.01 * i as f32).sin(); - let s = "\u{1f600}hello piet-gpu text!"; + let s = "\u{1f600}hello vello text!"; text.add( sb, None, diff --git a/shader/fine.wgsl b/shader/fine.wgsl index 7b298ca..bf6d625 100644 --- a/shader/fine.wgsl +++ b/shader/fine.wgsl @@ -239,7 +239,7 @@ fn main( let rad = read_rad_grad(cmd_ix); for (var i = 0u; i < PIXELS_PER_THREAD; i += 1u) { let my_xy = vec2(xy.x + f32(i), xy.y); - // TODO: can hoist y, but for now stick to piet-gpu + // TODO: can hoist y, but for now stick to the GLSL version let xy_xformed = rad.matrx.xz * my_xy.x + rad.matrx.yw * my_xy.y - rad.xlat; let ba = dot(xy_xformed, rad.c1); let ca = rad.ra * dot(xy_xformed, xy_xformed); diff --git a/shader/shared/config.wgsl b/shader/shared/config.wgsl index 54f94f6..0cb56d8 100644 --- a/shader/shared/config.wgsl +++ b/shader/shared/config.wgsl @@ -16,7 +16,6 @@ struct Config { bin_data_start: u32, // offsets within scene buffer (in u32 units) - // Note: this is a difference from piet-gpu, which is in bytes pathtag_base: u32, pathdata_base: u32, diff --git a/shader/tile_alloc.wgsl b/shader/tile_alloc.wgsl index b7c6fd9..7bb0e72 100644 --- a/shader/tile_alloc.wgsl +++ b/shader/tile_alloc.wgsl @@ -93,8 +93,7 @@ fn main( // process fewer draw objects than the number of threads in the wg. let total_count = sh_tile_count[WG_SIZE - 1u]; for (var i = local_id.x; i < total_count; i += WG_SIZE) { - // Note: could format output buffer as u32 for even better load - // balancing, as does piet-gpu. + // Note: could format output buffer as u32 for even better load balancing. tiles[tile_offset + i] = Tile(0, 0u); } } diff --git a/src/engine.rs b/src/engine.rs index b9d16b1..5c3f6b9 100644 --- a/src/engine.rs +++ b/src/engine.rs @@ -90,7 +90,7 @@ pub enum Command { UploadImage(ImageProxy, Vec), // Discussion question: third argument is vec of resources? // Maybe use tricks to make more ergonomic? - // Alternative: provide bufs & images as separate sequences, like piet-gpu. + // Alternative: provide bufs & images as separate sequences Dispatch(ShaderId, (u32, u32, u32), Vec), Download(BufProxy), Clear(BufProxy, u64, Option), diff --git a/src/glyph.rs b/src/glyph.rs index 8113af4..1089552 100644 --- a/src/glyph.rs +++ b/src/glyph.rs @@ -1,4 +1,4 @@ -// Copyright 2022 The piet-gpu authors. +// Copyright 2022 The vello authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/src/scene.rs b/src/scene.rs index 06201f6..583e457 100644 --- a/src/scene.rs +++ b/src/scene.rs @@ -1,4 +1,4 @@ -// Copyright 2022 The piet-gpu authors. +// Copyright 2022 The vello authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License.