mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-10 20:51:29 +11:00
18c0da02e5
As stated by the README, the intention is for the shaders to be provided under the terms of the Unlicense in addition to the MIT and Apache-2.0 licenses. While here, add a self-contained UNLICENSE file to replace the external reference to unlicense.org.
17 lines
276 B
WebGPU Shading Language
17 lines
276 B
WebGPU Shading Language
// SPDX-License-Identifier: Apache-2.0 OR MIT OR Unlicense
|
|
|
|
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>,
|
|
}
|