[Feat, Docs] (Diligent): cache last PSO and document framebuffer/UBO progress

- Reuse the last state PSO when program/render-state/topology/VAO layout is unchanged
- Update handoff with completed texture/sampler, UBO, framebuffer, and multi-draw work
This commit is contained in:
BZLZHH
2026-08-23 09:10:53 +08:00
parent 827d46cad3
commit 403c82ac4a
3 changed files with 30 additions and 3 deletions
@@ -117,6 +117,8 @@ namespace MobileGL::MG_Backend::DiligentBackend {
Uint32 m_width = 256;
Uint32 m_height = 256;
Uint32 m_lastDrawVertexCount = 0;
Uint64 m_lastPSOKey = 0;
Bool m_hasCachedPSO = false;
Bool m_initialized = false;
};
} // namespace MobileGL::MG_Backend::DiligentBackend