vello/piet-gpu/shader
Elias Naur db59b5d570 coarse,kernel4: make stroke, (non-zero) fill, solid separate commands
Before this change, every command (FillColor, FillImage, BeginClip)
had (or would need) stroke, (non-zero) fill and solid variants.

This change adds a command for each fill mode and their parameters,
reducing code duplication and adds support for stroked FillImage and
BeginClip as a side-effect.

The rest of the pipeline doesn't yet support Stroked FillImage and
BeginClip. That's a follow-up change.

Since each command includes a tag, this change adds an extra word for
each fill and stroke. That waste is also addressed in a follow-up.

Updates #70

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2021-03-19 16:43:33 +01:00
..
annotated.h collapse annotated Fill and Stroke to Color with fill mode flag 2021-03-19 12:50:12 +01:00
backdrop.comp collapse annotated Fill and Stroke to Color with fill mode flag 2021-03-19 12:50:12 +01:00
backdrop.spv collapse annotated Fill and Stroke to Color with fill mode flag 2021-03-19 12:50:12 +01:00
binning.comp collapse annotated Fill and Stroke to Color with fill mode flag 2021-03-19 12:50:12 +01:00
binning.spv collapse annotated Fill and Stroke to Color with fill mode flag 2021-03-19 12:50:12 +01:00
bins.h all: add optional memory checks 2021-02-15 16:07:45 +01:00
build.ninja piet-gpu-types: remove unused scene elements 2020-09-27 18:57:53 +02:00
coarse.comp coarse,kernel4: make stroke, (non-zero) fill, solid separate commands 2021-03-19 16:43:33 +01:00
coarse.spv coarse,kernel4: make stroke, (non-zero) fill, solid separate commands 2021-03-19 16:43:33 +01:00
elements.comp collapse FillCubic and StrokeCubic into Cubic with flags for fill mode 2021-03-19 12:50:12 +01:00
elements.spv collapse FillCubic and StrokeCubic into Cubic with flags for fill mode 2021-03-19 12:50:12 +01:00
kernel4.comp coarse,kernel4: make stroke, (non-zero) fill, solid separate commands 2021-03-19 16:43:33 +01:00
kernel4.spv coarse,kernel4: make stroke, (non-zero) fill, solid separate commands 2021-03-19 16:43:33 +01:00
mem.h all: add optional memory checks 2021-02-15 16:07:45 +01:00
path_coarse.comp collapse FillCubic and StrokeCubic into Cubic with flags for fill mode 2021-03-19 12:50:12 +01:00
path_coarse.spv collapse FillCubic and StrokeCubic into Cubic with flags for fill mode 2021-03-19 12:50:12 +01:00
pathseg.h collapse FillCubic and StrokeCubic into Cubic with flags for fill mode 2021-03-19 12:50:12 +01:00
ptcl.h coarse,kernel4: make stroke, (non-zero) fill, solid separate commands 2021-03-19 16:43:33 +01:00
scene.h use tag flags for fill vs stroke modes in scene elements 2021-03-19 12:50:12 +01:00
setup.h use tag flags for fill vs stroke modes in scene elements 2021-03-19 12:50:12 +01:00
state.h ensure consistent path segment transformation 2021-03-19 12:45:23 +01:00
tile.h ensure consistent path segment transformation 2021-03-19 12:45:23 +01:00
tile_alloc.comp collapse annotated Fill and Stroke to Color with fill mode flag 2021-03-19 12:50:12 +01:00
tile_alloc.spv collapse annotated Fill and Stroke to Color with fill mode flag 2021-03-19 12:50:12 +01:00