8000 Filter unused uniforms · Issue #1861 · galacean/engine · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Filter unused uniforms #1861
Open
Open
@zhuxudong

Description

@zhuxudong

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0