mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-09 20:31:29 +11:00
ff59839737
* 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
16 lines
298 B
WebGPU Shading Language
16 lines
298 B
WebGPU Shading Language
// SPDX-License-Identifier: Apache-2.0 OR MIT OR Unlicense
|
|
|
|
// Common datatypes for path and tile intermediate info.
|
|
|
|
struct Path {
|
|
// bounding box in tiles
|
|
bbox: vec4<u32>,
|
|
// offset (in u32's) to tile rectangle
|
|
tiles: u32,
|
|
}
|
|
|
|
struct Tile {
|
|
backdrop: i32,
|
|
segments: u32,
|
|
}
|