mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-11 04:51:32 +11:00
15 lines
215 B
WebGPU Shading Language
15 lines
215 B
WebGPU Shading Language
|
struct Bic {
|
||
|
a: u32,
|
||
|
b: u32,
|
||
|
}
|
||
|
|
||
|
fn bic_combine(x: Bic, y: Bic) -> Bic {
|
||
|
let m = min(x.b, y.a);
|
||
|
return Bic(x.a + y.a - m, x.b + y.b - m);
|
||
|
}
|
||
|
|
||
|
struct ClipEl {
|
||
|
parent_ix: u32,
|
||
|
bbox: vec4<f32>,
|
||
|
}
|