Wrap stroke mix shell

This commit is contained in:
2026-06-13 19:19:33 +02:00
parent fc4fbb7954
commit a428f77db6
4 changed files with 23 additions and 3 deletions

View File

@@ -562,6 +562,19 @@ execute_legacy_canvas_stroke_mix_pass_with_setup(
return result;
}
template <typename BeginMixPass, typename EndMixPass>
[[nodiscard]] inline LegacyCanvasStrokeMixPassResult
execute_legacy_canvas_stroke_mix_pass_shell(
BeginMixPass&& begin_mix_pass,
EndMixPass&& end_mix_pass,
const LegacyCanvasStrokeMixPassRequest& request)
{
return execute_legacy_canvas_stroke_mix_pass_with_setup(
std::forward<BeginMixPass>(begin_mix_pass),
std::forward<EndMixPass>(end_mix_pass),
request);
}
struct LegacyCanvasStrokeComputeRequest {
StrokeSample previous_sample {};
std::span<const StrokeSample> samples;