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

@@ -429,7 +429,11 @@ powershell -ExecutionPolicy Bypass -File scripts\automation\apple-remote-build.p
tokens used by `Texture2D`, plus cube-map binding and allocation face targets
used by `TextureCube`. Retained `Texture2D`, `TextureCube`, and RTT texture
allocation, bind, parameter, update, mipmap, and delete dispatch now share
the retained `legacy_gl_texture_dispatch` raw callback bridge. It also owns and
the retained `legacy_gl_texture_dispatch` raw callback bridge. 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`. It also owns and
validates framebuffer blit color mask and linear/nearest filters used by
`RTT::resize` and `RTT::copy`, renderer API blit-filter to OpenGL token
mapping, plus the default linear clamp-to-edge render-target texture

File diff suppressed because one or more lines are too long

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