[Feat] (GL_State/RenderState): implement ClearStencil

This commit is contained in:
2026-02-17 08:19:22 +08:00
parent f8f3d6e657
commit 3ce7a2fd46
4 changed files with 261 additions and 29 deletions
@@ -18,7 +18,9 @@ namespace MobileGL::MG_Backend::DirectVulkan {
}
const auto& clearColor = MG_State::pGLContext->GetClearColor();
pVulkanRenderer->RequestClear(mask, clearColor);
const auto clearDepth = MG_State::pGLContext->GetClearDepth();
const auto clearStencil = static_cast<Uint32>(MG_State::pGLContext->GetClearStencil());
pVulkanRenderer->RequestClear(mask, clearColor, clearDepth, clearStencil);
}
void DrawElements(GLenum mode, GLsizei count, GLenum type, const void* indices) {