[Chore] (MG_Backend/DirectVulkan): exclude some validation logic from release build

This commit is contained in:
2026-05-09 13:45:19 +08:00
parent 9fbd83d602
commit c5bf0dc07d
4 changed files with 19 additions and 85 deletions
@@ -1998,6 +1998,7 @@ void main() {
return VK_NULL_HANDLE;
}
#if MOBILEGL_LOG_ACTIVE_LEVEL <= MOBILEGL_LOG_LEVEL_DEBUG
const auto& limits = m_physicalDevice.properties.limits;
if (programObj.fragmentInputComponentCount != 0) {
MOBILEGL_ASSERT(
@@ -2033,6 +2034,7 @@ void main() {
static_cast<Int>(programObj.rasterizationProducerStage));
}
}
#endif
auto vertexInputHash = m_vertexInputStateFactory->ComputeHash(vao);
auto& vis = m_vertexInputStateFactory->GetOrCreateVertexInputState(vao);