Share retained sampler and pixel-buffer dispatch bridges

This commit is contained in:
2026-06-05 14:42:40 +02:00
parent 84e63c0d34
commit d719a5a5e5
7 changed files with 294 additions and 184 deletions

View File

@@ -1145,7 +1145,11 @@ face targets, RGBA allocation format, and unsigned-byte component type also
delegate to `pp_renderer_gl`. RGBA8/RGBA32F readback formats, checked byte-count math, PBO
pixel-buffer target/usage/access tokens, and PBO allocation/readback/map/unmap/delete
dispatch sequences used by retained recording readbacks now live in
`pp_renderer_gl`. The framebuffer blit color mask and linear/nearest
`pp_renderer_gl`; retained `PBO` allocation, framebuffer readback, map, unmap,
and delete dispatch now share the retained `legacy_gl_pixel_buffer_dispatch`
raw callback bridge. Retained `Sampler` create, parameter, border-color, bind,
and unbind dispatch now share the retained `legacy_gl_sampler_dispatch` raw
callback bridge. The framebuffer blit color mask and linear/nearest
filter tokens used by `RTT::resize` and `RTT::copy`, renderer API blit-filter
to OpenGL token mapping, plus the default
render-target texture parameters and parameter dispatch, texture/renderbuffer
@@ -2563,6 +2567,12 @@ Results:
`legacy_gl_framebuffer_dispatch`, removing duplicated raw framebuffer and
readback callbacks from `src/texture.cpp` and `src/rtt.cpp` while
framebuffer/readback ownership remains retained under DEBT-0036.
- Retained `Sampler` create, parameter, border-color, bind, and unbind dispatch
now share `legacy_gl_sampler_dispatch`, and retained `PBO` allocation,
framebuffer readback, map, unmap, and delete dispatch now share
`legacy_gl_pixel_buffer_dispatch`; this removes another pair of raw resource
callback clusters from `src/texture.cpp` and `src/rtt.cpp` while sampler and
pixel-buffer ownership remain retained under DEBT-0036.
- Canvas draw-merge shader-blend selection now consumes the extracted
`pp_paint_renderer` stroke composite planner for current layer and primary
brush blend modes, while preserving legacy OpenGL compositing execution under