Extract stroke draw pad face callback body

This commit is contained in:
2026-06-13 23:29:27 +02:00
parent 6a9439a804
commit e507fe2786
2 changed files with 21 additions and 0 deletions

View File

@@ -882,6 +882,21 @@ void Canvas::stroke_draw_pad_face_orchestration(
bool copy_stroke_destination,
const pp::renderer::Extent2D& stroke_extent,
const glm::vec4& pad_color)
{
stroke_draw_pad_face_callback_body(
box_dirty,
box_face,
copy_stroke_destination,
stroke_extent,
pad_color);
}
void Canvas::stroke_draw_pad_face_callback_body(
const std::array<bool, 6>& box_dirty,
const std::array<glm::vec4, 6>& box_face,
bool copy_stroke_destination,
const pp::renderer::Extent2D& stroke_extent,
const glm::vec4& pad_color)
{
pp::panopainter::setup_legacy_stroke_pad_shader(
pp::panopainter::LegacyStrokePadUniforms {