[Feat] (Diligent, MG_Impl): wire CopyTexImage2D/CopyTexSubImage2D readback copy

- Copy current read-FBO color attachment into the bound GL_TEXTURE_2D
- Uses whole-color CopyTexture fallback for now; 13 Diligent tests pass
This commit is contained in:
BZLZHH
2026-08-23 09:39:40 +08:00
parent 23b53eacce
commit 6bf32acdef
4 changed files with 86 additions and 2 deletions
@@ -64,6 +64,7 @@ namespace MobileGL::MG_Backend::DiligentBackend {
void BlitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1,
GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1,
GLbitfield mask, GLenum filter);
void CopyReadFramebufferToTexture(MG_State::GLState::ITextureObject& dst);
void Present();
::Diligent::IRenderDevice* GetDevice() const { return m_pDevice; }