[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
+4 -2
View File
@@ -105,6 +105,7 @@ Working tree is clean.
- `DrawsWithBlendFromMobileGLState`
- `DrawsWithDepthTestFromMobileGLState`
- `DrawsNamedUniformBlockFromMobileGLState`
- `DrawsWithStencilTestFromMobileGLState`
---
@@ -128,6 +129,7 @@ Verified locally on Turnip Adreno 750:
- Textured draw test passes
- Render state:
- Blend enable/factors/equations
- Stencil clear + test enabled on a D24S8 default depth/stencil target
- Depth test enable/func/write mask
- Cull face enable/mode/front-face winding
- Stencil test enable/masks/ops/func/ref
@@ -156,7 +158,7 @@ Verified locally on Turnip Adreno 750:
- Local test result:
```
[ PASSED ] 12 tests
[ PASSED ] 13 tests
```
---
@@ -248,7 +250,7 @@ Notes:
- [x] Texture filtering / sampler state test
- [x] framebuffer offscreen render-to-texture test
- [x] Depth test visual test
- [ ] Stencil test
- [x] Stencil test
---