Route canvas mode and preview texture setup through helpers

This commit is contained in:
2026-06-13 05:38:58 +02:00
parent e82bcb6d56
commit 1ae623000a
4 changed files with 33 additions and 15 deletions

View File

@@ -18,6 +18,14 @@ agent or engineer to remove them without reconstructing context from chat.
## Recent Reductions
- 2026-06-13: DEBT-0036 was narrowed again. `CanvasModeTransform::on_Draw`
and `CanvasModeFloodFill::on_Draw` retained `Texture` shader setup now route
through `legacy_canvas_draw_merge_services.h`; the mode paths still own
active texture selection, sampler/texture binding, and draw execution.
- 2026-06-13: DEBT-0036 was narrowed again. `NodeStrokePreview::draw`
retained preview `Texture` shader setup now routes through
`legacy_canvas_draw_merge_services.h`; the node still owns preview texture
binding, sampler binding, and draw execution.
- 2026-06-13: DEBT-0036 was narrowed again. `NodeViewport` retained preview
draw and `NodePanelGrid` sun-overlay `Texture` shader setup now route
through `legacy_canvas_draw_merge_services.h`; the node paths still own

View File

@@ -3021,6 +3021,9 @@ Results:
stroke composite shader setup helper, while render-task ordering, framebuffer
copy bounds, sampler/texture binding, and draw execution remain in retained
canvas-mode code.
- `NodeStrokePreview::draw` now shares the retained draw-merge texture shader
setup helper for preview `Texture`, `Tex`, and `MVP` setup, while preview
texture binding, sampler binding, and draw execution remain in the node path.
- `Canvas::import_layer` retained object drawing now shares the draw-merge
texture shader setup helper for flat and spherical imports, while texture
upload, sampler/texture binding, draw callbacks, and object geometry remain in
@@ -3048,6 +3051,10 @@ Results:
share the retained draw-merge texture shader setup helper for `Texture`,
`Tex`, and `MVP` setup. Texture/sampler binding, viewport/state setup, and
draw execution remain in the node paths.
- `CanvasModeTransform::on_Draw` and `CanvasModeFloodFill::on_Draw` now share
the retained draw-merge texture shader setup helper for `Texture`, `Tex`, and
`MVP` setup. Active texture selection, sampler/texture binding, and draw
execution remain in the canvas mode paths.
- `Canvas::stroke_draw_mix` now shares the retained stroke composite shader
helper for mixer-pass `CompDraw` setup, while preserving its caller-specific
texture slot uniforms. Mixer framebuffer/scissor state, sampler and texture