Move OpenGL image format mapping

This commit is contained in:
2026-06-01 17:48:30 +02:00
parent 2754df9f46
commit 2e0ebd0e13
6 changed files with 81 additions and 9 deletions

View File

@@ -127,7 +127,9 @@ Known local toolchain state:
by the legacy app initialization path; `pp_renderer_gl_capabilities_tests`
validates framebuffer fetch, map-buffer alignment, desktop GL float support,
GLES float/half-float extensions, WebGL exclusion behavior, and the
upload-type mapping used by legacy `Texture2D` and `RTT` creation.
upload-type mapping used by legacy `Texture2D` and `RTT` creation. It also
validates image channel-count to OpenGL texture format mapping, including
invalid channel counts rejected by `Texture2D::create(Image)`.
- `windows-msvc-vcpkg-headless` validates manifest install/configure/build/test
for the current headless component matrix; see DEBT-0007 for remaining app
and platform triplet migration.

View File

@@ -388,9 +388,10 @@ catalog now consumed by the legacy OpenGL app initialization path.
`pp_renderer_gl` now exists as the first OpenGL backend library and owns pure
OpenGL capability detection for framebuffer fetch, map-buffer alignment, and
float texture support. It also owns the OpenGL texture upload-type mapping used
by legacy `Texture2D` and `RTT` creation. The legacy app delegates extension
and upload-format interpretation to that backend library, but the existing
renderer classes are not yet fully behind the renderer interfaces.
by legacy `Texture2D` and `RTT` creation, plus image channel-count to texture
format mapping for `Texture2D` image uploads. The legacy app delegates
extension and upload-format interpretation to that backend library, but the
existing renderer classes are not yet fully behind the renderer interfaces.
Implementation tasks:
@@ -629,8 +630,8 @@ Results:
- `pp_renderer_gl_capabilities_tests` passed on default MSVC, vcpkg-headless,
and Android arm64 configure/build, covering framebuffer fetch, map-buffer
alignment, desktop GL core float support, GLES float/half-float extensions,
WebGL exclusion behavior, and upload types for RGBA8/RGBA16F/RGBA32F
internal formats.
WebGL exclusion behavior, upload types for RGBA8/RGBA16F/RGBA32F internal
formats, and image channel-count format mapping including invalid counts.
- PowerShell analyze automation returns JSON summaries and includes the shader
validation target.
- `windows-msvc-vcpkg-headless` configured through the Visual Studio bundled