Share retained texture dispatch bridge

This commit is contained in:
2026-06-05 14:29:59 +02:00
parent df21d673dd
commit 421f2713db
6 changed files with 306 additions and 250 deletions

View File

@@ -1137,7 +1137,10 @@ format mapping for `Texture2D` image uploads and framebuffer status naming for
OpenGL internal/pixel/component token mapping, including depth-stencil formats,
for future backend texture objects. `Texture2D` 2D texture binding, upload,
mipmap generation, framebuffer readback setup, and update component-type tokens
now delegate to `pp_renderer_gl`. `TextureCube` cube-map binding, allocation
now delegate to `pp_renderer_gl`; 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.
`TextureCube` cube-map binding, allocation
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
@@ -2547,6 +2550,11 @@ Results:
`legacy_gl_renderbuffer_dispatch`, removing duplicated raw renderbuffer
callbacks from `src/canvas.cpp` and `src/rtt.cpp` while resource lifetime
ownership remains open under DEBT-0036.
- Retained `Texture2D`, `TextureCube`, and RTT texture allocation, deletion,
binding, parameter setup, 2D update, and mipmap dispatch now share
`legacy_gl_texture_dispatch`, removing duplicated raw texture callbacks from
`src/texture.cpp` and `src/rtt.cpp` while texture resource ownership remains
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