vello/piet-gpu-types/src/tile.rs
Raph Levien af0a1af8e1 Make fills work
The backdrop propagation is slow but it does work.
2020-06-05 22:40:44 -07:00

23 lines
481 B
Rust

use piet_gpu_derive::piet_gpu;
piet_gpu! {
#[gpu_write]
mod tile {
struct Path {
bbox: [u16; 4],
tiles: Ref<Tile>,
}
struct Tile {
tile: Ref<TileSeg>,
backdrop: i32,
}
// Segments within a tile are represented as a linked list.
struct TileSeg {
start: [f32; 2],
end: [f32; 2],
y_edge: f32,
next: Ref<TileSeg>,
}
}
}