engine
engine copied to clipboard
Filter unused uniforms
Is your feature request related to a problem? Please describe.
The shader will compile as normal, may exceed the max amount of uniform, even if uniform u_test
are not used.
uniform vec4 u_test[1024];
and will trigger compile error, such as #1795
Describe the solution you'd like
filter ununsed uniform or uniform blocks when initialized or shaderData's macroCollection
changed
Additional context Different platforms may perform differently.