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

@@ -427,7 +427,9 @@ powershell -ExecutionPolicy Bypass -File scripts\automation\apple-remote-build.p
used by `RTT` and `Texture2D` diagnostics. It also owns the 2D texture target,
framebuffer setup, readback format, mipmap target, and update component-type
tokens used by `Texture2D`, plus cube-map binding and allocation face targets
used by `TextureCube`. It also owns and
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
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

@@ -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