[Feat] (Diligent, MG_Impl): wire GetTexImage/GetTextureImage RGBA8 readback

- Copy texture to staging and map rows for GL_RGBA/GL_UNSIGNED_BYTE
- Wire both GLFunctionsTable entries; 13 Diligent tests pass
This commit is contained in:
BZLZHH
2026-08-23 09:41:17 +08:00
parent 6bf32acdef
commit 9f79a88af5
4 changed files with 96 additions and 2 deletions
@@ -65,6 +65,7 @@ namespace MobileGL::MG_Backend::DiligentBackend {
GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1,
GLbitfield mask, GLenum filter);
void CopyReadFramebufferToTexture(MG_State::GLState::ITextureObject& dst);
Bool ReadTextureImage(MG_State::GLState::ITextureObject& texture, Uint32 level, void* pixels);
void Present();
::Diligent::IRenderDevice* GetDevice() const { return m_pDevice; }