mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-10 21:28:32 +09:00
[Fix] (ShaderTranspiler): key translation cache L1 on the front-end environment only, not backend identity
This commit is contained in:
@@ -89,6 +89,11 @@ namespace MobileGL {
|
||||
Resources.maxComputeWorkGroupSizeX = 1024;
|
||||
Resources.maxComputeWorkGroupSizeY = 1024;
|
||||
// TODO: Drive glslang compute resource limits from the active backend instead of this permissive cap.
|
||||
// WHEN THAT IS DONE: CompileEnv::maxComputeWorkGroupSize and
|
||||
// maxComputeWorkGroupInvocations must also be added to
|
||||
// ComputeFrontendCompileEnvFingerprint(). They are out of the L1 memo key today
|
||||
// ONLY because these maxima are hardcoded here - see the classification comment
|
||||
// on CompileEnv::frontendFingerprint.
|
||||
Resources.maxComputeWorkGroupSizeZ = 1024;
|
||||
Resources.maxComputeUniformComponents = 1024;
|
||||
Resources.maxComputeTextureImageUnits = 16;
|
||||
|
||||
Reference in New Issue
Block a user