[Feat, Test] (Diligent, MG_Test): add stencil clear and stencil state test

- Use D24S8 for the default offscreen depth/stencil target
- Wire GL_STENCIL_BUFFER_BIT Clear through renderer->ClearStencil
- Add DrawsWithStencilTestFromMobileGLState; 13 Diligent tests pass
This commit is contained in:
BZLZHH
2026-08-23 09:37:49 +08:00
parent e829e70d8b
commit 23b53eacce
5 changed files with 112 additions and 4 deletions
@@ -51,6 +51,7 @@ namespace MobileGL::MG_Backend::DiligentBackend {
Bool Initialize(Uint32 width, Uint32 height);
void Clear(Float r, Float g, Float b, Float a);
void ClearDepth(Float depth);
void ClearStencil(Uint32 stencil);
void DrawTriangle();
void DrawVertices(const Float* vertices, Uint32 vertexCount);
// Creates a simple 2D RGBA8 texture from CPU data and makes it available