Use shared parallel loop for grid lightmap bake

This commit is contained in:
2026-06-04 18:17:40 +02:00
parent b1acd5118b
commit e52fd3cbb5
4 changed files with 16 additions and 16 deletions

View File

@@ -588,6 +588,10 @@ commit used by the live grid panel. Grid execution now dispatches through
`GridUiServices` in `src/legacy_grid_ui_services.*` before legacy image loading,
OpenGL texture updates, nanort lightmap baking, and `Canvas::draw_objects`
execution continue.
The retained `NodePanelGrid` lightmap bake now uses the shared `parallel_for`
helper instead of platform-specific Win32 Concurrency Runtime and Apple
`dispatch_apply` branches, keeping the row-dispatch policy in common legacy
infrastructure while the bake itself remains debt-tracked.
`pano_cli plan-history-operation` exposes app-core planning for undo, redo, and
clear-history availability used by toolbar buttons and canvas shortcuts; live
toolbar and canvas-hotkey execution now dispatch through a shared app-shell
@@ -1005,7 +1009,8 @@ and RGBA8 read/write pixel mapping to `pp_renderer_gl`.
`NodePanelGrid` heightmap preview and lightmap baking now delegate texture
readback formats, sampler filters, depth/blend state, depth clears, viewport
queries, color-mask booleans, active texture units, and float render-target
formats to `pp_renderer_gl`.
formats to `pp_renderer_gl`, and its CPU lightmap row dispatch now uses the
shared legacy `parallel_for` helper rather than platform-specific worker APIs.
Legacy `util.cpp` OpenGL error naming and `gl_state` save/restore now delegate
error codes, state queries, framebuffer targets, texture binding targets, and
active texture units to `pp_renderer_gl`.