1
0
Fork 0
mirror of https://github.com/italicsjenga/vello.git synced 2025-02-24 00:27:43 +11:00
vello/shader/shared/cubic.wgsl
Daniel McNab ff59839737
Move the vello crate to the workspace root ()
* Move the vello crate to the root of the crate

* Add warning that README is work in progress

* Add newline in warning

* Move the unlicense into the shader folder

* Fixup wgsl-analyzer include paths
2023-01-05 09:32:09 +00:00

13 lines
237 B
WebGPU Shading Language

// SPDX-License-Identifier: Apache-2.0 OR MIT OR Unlicense
struct Cubic {
p0: vec2<f32>,
p1: vec2<f32>,
p2: vec2<f32>,
p3: vec2<f32>,
stroke: vec2<f32>,
path_ix: u32,
flags: u32,
}
let CUBIC_IS_STROKE = 1u;