Update references to piet-gpu where it makes sense (#240)

This commit is contained in:
Duane Johnson 2023-01-08 09:15:51 -07:00 committed by GitHub
parent 480e5a5e2f
commit 3e8a4813f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 9 additions and 13 deletions

View file

@ -6,7 +6,6 @@ members = ["examples/with_winit", "examples/with_bevy", "examples/run_wasm"]
[workspace.package] [workspace.package]
edition = "2021" edition = "2021"
version = "0.1.0" version = "0.1.0"
authors = ["piet-gpu developers"]
[patch.crates-io] [patch.crates-io]
# Required for metal support to work on wgpu # Required for metal support to work on wgpu
@ -16,7 +15,6 @@ naga = { git = "https://github.com/gfx-rs/naga", rev = "ddcd5d3121150b2b1beee6e5
[package] [package]
name = "vello" name = "vello"
version = "0.1.0" version = "0.1.0"
authors = ["Raph Levien <raph@google.com>"]
license = "MIT/Apache-2.0" license = "MIT/Apache-2.0"
edition = "2021" edition = "2021"

View file

@ -2,6 +2,8 @@
Raph Levien, 2020-12-10 Raph Levien, 2020-12-10
Note: `vello` was previously called `piet-gpu`.
Ive 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 its motivated me to spend a lot of energy mastering some difficult material. The grand vision is much more than one person can do, so Ill do some of it myself and maybe inspire collaboration for the rest of it. Ive 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 its motivated me to spend a lot of energy mastering some difficult material. The grand vision is much more than one person can do, so Ill 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. Ill go into some detail about why I think this goal is possible and what kind of work is needed to get there. 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. Ill go into some detail about why I think this goal is possible and what kind of work is needed to get there.

View file

@ -1,7 +1,6 @@
[package] [package]
name = "run-wasm" name = "run-wasm"
version.workspace = true version.workspace = true
authors.workspace = true
edition.workspace = true edition.workspace = true
publish = false publish = false

View file

@ -1,7 +1,6 @@
[package] [package]
name = "with_winit" name = "with_winit"
version.workspace = true version.workspace = true
authors.workspace = true
edition.workspace = true edition.workspace = true
publish = false publish = false

View file

@ -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"); // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. // you may not use this file except in compliance with the License.

View file

@ -280,7 +280,7 @@ pub fn render_anim_frame(sb: &mut SceneBuilder, text: &mut SimpleText, i: usize)
&rect, &rect,
); );
let text_size = 60.0 + 40.0 * (0.01 * i as f32).sin(); 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( text.add(
sb, sb,
None, None,

View file

@ -239,7 +239,7 @@ fn main(
let rad = read_rad_grad(cmd_ix); let rad = read_rad_grad(cmd_ix);
for (var i = 0u; i < PIXELS_PER_THREAD; i += 1u) { for (var i = 0u; i < PIXELS_PER_THREAD; i += 1u) {
let my_xy = vec2(xy.x + f32(i), xy.y); 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 xy_xformed = rad.matrx.xz * my_xy.x + rad.matrx.yw * my_xy.y - rad.xlat;
let ba = dot(xy_xformed, rad.c1); let ba = dot(xy_xformed, rad.c1);
let ca = rad.ra * dot(xy_xformed, xy_xformed); let ca = rad.ra * dot(xy_xformed, xy_xformed);

View file

@ -16,7 +16,6 @@ struct Config {
bin_data_start: u32, bin_data_start: u32,
// offsets within scene buffer (in u32 units) // offsets within scene buffer (in u32 units)
// Note: this is a difference from piet-gpu, which is in bytes
pathtag_base: u32, pathtag_base: u32,
pathdata_base: u32, pathdata_base: u32,

View file

@ -93,8 +93,7 @@ fn main(
// process fewer draw objects than the number of threads in the wg. // process fewer draw objects than the number of threads in the wg.
let total_count = sh_tile_count[WG_SIZE - 1u]; let total_count = sh_tile_count[WG_SIZE - 1u];
for (var i = local_id.x; i < total_count; i += WG_SIZE) { for (var i = local_id.x; i < total_count; i += WG_SIZE) {
// Note: could format output buffer as u32 for even better load // Note: could format output buffer as u32 for even better load balancing.
// balancing, as does piet-gpu.
tiles[tile_offset + i] = Tile(0, 0u); tiles[tile_offset + i] = Tile(0, 0u);
} }
} }

View file

@ -90,7 +90,7 @@ pub enum Command {
UploadImage(ImageProxy, Vec<u8>), UploadImage(ImageProxy, Vec<u8>),
// Discussion question: third argument is vec of resources? // Discussion question: third argument is vec of resources?
// Maybe use tricks to make more ergonomic? // 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<ResourceProxy>), Dispatch(ShaderId, (u32, u32, u32), Vec<ResourceProxy>),
Download(BufProxy), Download(BufProxy),
Clear(BufProxy, u64, Option<NonZeroU64>), Clear(BufProxy, u64, Option<NonZeroU64>),

View file

@ -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"); // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. // you may not use this file except in compliance with the License.

View file

@ -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"); // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. // you may not use this file except in compliance with the License.