ruffle/.github/workflows
Aaron Hill f7205a02a9 render: Add BlendMode infrastructure and implement BlendMode.ADD
Each render backend keeps track of a stack of BlenModes,
which are pushed and popped by 'core' as we render objects
in the displaay tree. For now, I've just implemented BlendMode.ADD,
which maps directly onto blend mode supported by each backend.

All other blend modes (besides 'NORMAL') will produce a warning
when we try to render using them. This may produce a very large amount
of log output, but it's simpler than emitting each warning only once,
and will help to point developers in the right direction when they
get otherwise inexplicable rendering issues (due to a blend mode
not being implemented).

The wgpu implementation is by far the most complicated, as we need
to construct a `RenderPipeline` for each possible
`(BlendMode, MaskState)`. I haven't been able to find any documentation
about the maximum supported number of (simultaneous) WebGPU render
pipelines - if this becomes an issue, we may need to register them
on-demand when a particular blend mode is requested.
2022-08-18 16:38:17 -07:00
..
release_nightly.yml ci: Explicitly use ubuntu-22.04 image for all CI workflows 2022-08-17 11:10:10 -07:00
test_rust.yml render: Add BlendMode infrastructure and implement BlendMode.ADD 2022-08-18 16:38:17 -07:00
test_web.yml ci: Explicitly use ubuntu-22.04 image for all CI workflows 2022-08-17 11:10:10 -07:00