mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-10 20:51:29 +11:00
all: add SPDX license headers
Fixes #53 Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
parent
5c04e4882b
commit
d21f2b68de
|
@ -8,6 +8,7 @@ use crate::parse::{GpuScalar, GpuType};
|
||||||
|
|
||||||
pub fn gen_glsl(module: &LayoutModule) -> String {
|
pub fn gen_glsl(module: &LayoutModule) -> String {
|
||||||
let mut r = String::new();
|
let mut r = String::new();
|
||||||
|
writeln!(&mut r, "// SPDX-License-Identifier: Apache-2.0 OR MIT OR Unlicense\n").unwrap();
|
||||||
writeln!(&mut r, "// Code auto-generated by piet-gpu-derive\n").unwrap();
|
writeln!(&mut r, "// Code auto-generated by piet-gpu-derive\n").unwrap();
|
||||||
// Note: GLSL needs definitions before uses. We could do a topological sort here,
|
// Note: GLSL needs definitions before uses. We could do a topological sort here,
|
||||||
// but easiest for now to just require that in spec.
|
// but easiest for now to just require that in spec.
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// SPDX-License-Identifier: Apache-2.0 OR MIT OR Unlicense
|
||||||
|
|
||||||
// Code auto-generated by piet-gpu-derive
|
// Code auto-generated by piet-gpu-derive
|
||||||
|
|
||||||
struct AnnoFillRef {
|
struct AnnoFillRef {
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// SPDX-License-Identifier: Apache-2.0 OR MIT OR Unlicense
|
||||||
|
|
||||||
// Propagation of tile backdrop for filling.
|
// Propagation of tile backdrop for filling.
|
||||||
//
|
//
|
||||||
// Each thread reads one path element and calculates the number of spanned tiles
|
// Each thread reads one path element and calculates the number of spanned tiles
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// SPDX-License-Identifier: Apache-2.0 OR MIT OR Unlicense
|
||||||
|
|
||||||
// The binning stage of the pipeline.
|
// The binning stage of the pipeline.
|
||||||
//
|
//
|
||||||
// Each workgroup processes N_TILE paths.
|
// Each workgroup processes N_TILE paths.
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// SPDX-License-Identifier: Apache-2.0 OR MIT OR Unlicense
|
||||||
|
|
||||||
// Code auto-generated by piet-gpu-derive
|
// Code auto-generated by piet-gpu-derive
|
||||||
|
|
||||||
struct BinInstanceRef {
|
struct BinInstanceRef {
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// SPDX-License-Identifier: Apache-2.0 OR MIT OR Unlicense
|
||||||
|
|
||||||
// The coarse rasterizer stage of the pipeline.
|
// The coarse rasterizer stage of the pipeline.
|
||||||
//
|
//
|
||||||
// As input we have the ordered partitions of paths from the binning phase and
|
// As input we have the ordered partitions of paths from the binning phase and
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// SPDX-License-Identifier: Apache-2.0 OR MIT OR Unlicense
|
||||||
|
|
||||||
// The element processing stage, first in the pipeline.
|
// The element processing stage, first in the pipeline.
|
||||||
//
|
//
|
||||||
// This stage is primarily about applying transforms and computing bounding
|
// This stage is primarily about applying transforms and computing bounding
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// SPDX-License-Identifier: Apache-2.0 OR MIT OR Unlicense
|
||||||
|
|
||||||
// This is "kernel 4" in a 4-kernel pipeline. It renders the commands
|
// This is "kernel 4" in a 4-kernel pipeline. It renders the commands
|
||||||
// in the per-tile command list to an image.
|
// in the per-tile command list to an image.
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// SPDX-License-Identifier: Apache-2.0 OR MIT OR Unlicense
|
||||||
|
|
||||||
// Coarse rasterization of path segments.
|
// Coarse rasterization of path segments.
|
||||||
|
|
||||||
// Allocation and initialization of tiles for paths.
|
// Allocation and initialization of tiles for paths.
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// SPDX-License-Identifier: Apache-2.0 OR MIT OR Unlicense
|
||||||
|
|
||||||
// Code auto-generated by piet-gpu-derive
|
// Code auto-generated by piet-gpu-derive
|
||||||
|
|
||||||
struct PathFillLineRef {
|
struct PathFillLineRef {
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// SPDX-License-Identifier: Apache-2.0 OR MIT OR Unlicense
|
||||||
|
|
||||||
// Code auto-generated by piet-gpu-derive
|
// Code auto-generated by piet-gpu-derive
|
||||||
|
|
||||||
struct CmdCircleRef {
|
struct CmdCircleRef {
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// SPDX-License-Identifier: Apache-2.0 OR MIT OR Unlicense
|
||||||
|
|
||||||
// Code auto-generated by piet-gpu-derive
|
// Code auto-generated by piet-gpu-derive
|
||||||
|
|
||||||
struct LineSegRef {
|
struct LineSegRef {
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// SPDX-License-Identifier: Apache-2.0 OR MIT OR Unlicense
|
||||||
|
|
||||||
// Various constants for the sizes of groups and tiles.
|
// Various constants for the sizes of groups and tiles.
|
||||||
|
|
||||||
// Much of this will be made dynamic in various ways, but for now it's easiest
|
// Much of this will be made dynamic in various ways, but for now it's easiest
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// SPDX-License-Identifier: Apache-2.0 OR MIT OR Unlicense
|
||||||
|
|
||||||
// Code auto-generated by piet-gpu-derive
|
// Code auto-generated by piet-gpu-derive
|
||||||
|
|
||||||
struct StateRef {
|
struct StateRef {
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// SPDX-License-Identifier: Apache-2.0 OR MIT OR Unlicense
|
||||||
|
|
||||||
// Code auto-generated by piet-gpu-derive
|
// Code auto-generated by piet-gpu-derive
|
||||||
|
|
||||||
struct PathRef {
|
struct PathRef {
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// SPDX-License-Identifier: Apache-2.0 OR MIT OR Unlicense
|
||||||
|
|
||||||
// Allocation and initialization of tiles for paths.
|
// Allocation and initialization of tiles for paths.
|
||||||
|
|
||||||
#version 450
|
#version 450
|
||||||
|
|
Loading…
Reference in a new issue