Extract stroke destination dispatch helper
This commit is contained in:
@@ -116,6 +116,18 @@ struct LegacyCanvasStrokeTextureInputDispatch {
|
||||
};
|
||||
}
|
||||
|
||||
[[nodiscard]] inline LegacyCanvasStrokeTextureInputDispatch make_legacy_canvas_stroke_destination_texture_dispatch(
|
||||
std::function<void(int)> activate_texture_unit,
|
||||
std::function<void()> bind_stroke_destination,
|
||||
std::function<void()> unbind_stroke_destination)
|
||||
{
|
||||
return LegacyCanvasStrokeTextureInputDispatch {
|
||||
.activate_texture_unit = std::move(activate_texture_unit),
|
||||
.bind_stroke_destination = std::move(bind_stroke_destination),
|
||||
.unbind_stroke_destination = std::move(unbind_stroke_destination),
|
||||
};
|
||||
}
|
||||
|
||||
[[nodiscard]] inline LegacyCanvasStrokeTextureInputDispatch make_legacy_canvas_stroke_pad_destination_texture_dispatch(
|
||||
std::function<void(int)> activate_texture_unit,
|
||||
std::function<void()> bind_stroke_destination,
|
||||
|
||||
Reference in New Issue
Block a user