Extract pad destination texture dispatch helper
This commit is contained in:
@@ -116,6 +116,18 @@ struct LegacyCanvasStrokeTextureInputDispatch {
|
||||
};
|
||||
}
|
||||
|
||||
[[nodiscard]] inline LegacyCanvasStrokeTextureInputDispatch make_legacy_canvas_stroke_pad_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),
|
||||
};
|
||||
}
|
||||
|
||||
struct LegacyCanvasStrokeSamplerDispatch {
|
||||
std::function<void(int)> bind_brush_tip_sampler;
|
||||
std::function<void()> unbind_brush_tip_sampler;
|
||||
|
||||
Reference in New Issue
Block a user