[Feat] (Diligent, MG_Impl): wire GenerateMipmap via Diligent GPU mip generation

- Create state textures with MISC_TEXTURE_FLAG_GENERATE_MIPS
- GenerateMipmap resolves active GL_TEXTURE_2D and calls IDeviceContext::GenerateMips
- Update handoff; 16 Diligent tests pass
This commit is contained in:
BZLZHH
2026-08-23 10:08:54 +08:00
parent b9d1504cc5
commit 34ff95f6f5
4 changed files with 28 additions and 1 deletions
@@ -67,6 +67,7 @@ namespace MobileGL::MG_Backend::DiligentBackend {
GLbitfield mask, GLenum filter);
void CopyReadFramebufferToTexture(MG_State::GLState::ITextureObject& dst);
void CopyTextureSubData(MG_State::GLState::ITextureObject& src, MG_State::GLState::ITextureObject& dst);
void GenerateMipmap(MG_State::GLState::ITextureObject& texture);
Bool ReadTextureImage(MG_State::GLState::ITextureObject& texture, Uint32 level, void* pixels);
void Present();