[Fix] (MG_State/GLState, MG_Util/ShaderTranspiler): validate compute local size [skip ci]

This commit is contained in:
2026-07-02 22:18:56 +08:00
parent cd96db7829
commit edec6e4e62
2 changed files with 138 additions and 1 deletions
@@ -47,7 +47,8 @@ namespace MobileGL {
Resources.maxComputeWorkGroupCountZ = 65535;
Resources.maxComputeWorkGroupSizeX = 1024;
Resources.maxComputeWorkGroupSizeY = 1024;
Resources.maxComputeWorkGroupSizeZ = 64;
// TODO: Drive glslang compute resource limits from the active backend instead of this permissive cap.
Resources.maxComputeWorkGroupSizeZ = 1024;
Resources.maxComputeUniformComponents = 1024;
Resources.maxComputeTextureImageUnits = 16;
Resources.maxComputeImageUniforms = 8;