Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[spv-in]: Cull unused builtins inside structs #1469

Merged
merged 1 commit into from
Oct 20, 2021

Commits on Oct 19, 2021

  1. [spv-in]: Cull unused builtins inside structs

    Some compilers like shaderc introduce a full gl_PerVertex struct, this
    includes gl_ClipDistance. Normally this isn't a problem since most
    drivers optimize it away, but naga zero inits globals if they weren't
    previously initialized. This causes gl_ClipDistance to be initialized to
    zero which can be really bad for performance.
    JCapucho committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    83a4eed View commit details
    Browse the repository at this point in the history