engine icon indicating copy to clipboard operation
engine copied to clipboard

Filter unused uniforms

Open zhuxudong opened this issue 1 year ago • 0 comments

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 image

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.

zhuxudong avatar Nov 02 '23 10:11 zhuxudong