mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-10 20:51:29 +11:00
44bff2726c
Updates #70 Signed-off-by: Elias Naur <mail@eliasnaur.com>
23 lines
563 B
Rust
23 lines
563 B
Rust
use piet_gpu_derive::piet_gpu;
|
|
|
|
piet_gpu! {
|
|
#[gpu_write]
|
|
mod pathseg {
|
|
struct PathCubic {
|
|
p0: [f32; 2],
|
|
p1: [f32; 2],
|
|
p2: [f32; 2],
|
|
p3: [f32; 2],
|
|
path_ix: u32,
|
|
// trans_ix is the transform index. It is 1-based, 0 means no transformation.
|
|
trans_ix: u32,
|
|
// Halfwidth in both x and y for binning. For strokes only.
|
|
stroke: [f32; 2],
|
|
}
|
|
enum PathSeg {
|
|
Nop,
|
|
Cubic(TagFlags, PathCubic),
|
|
}
|
|
}
|
|
}
|