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