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

[Merged by Bors] - bevy_pbr: Avoid copying structs and using registers in shaders #7069

Closed

Commits on Jan 1, 2023

  1. bevy_pbr: Avoid copying structs

    Use of registers is a limiting factor in shader performance. Assignment of a
    struct from memory to a local variable can incur copies. Passing a variable
    that has struct type as an argument to a function can also incur copies. As
    such, these two cases can incur increased register usage and decreased
    performance. This commit removes a number of such uses in the PBR main pass
    shader.
    superdump committed Jan 1, 2023
    Configuration menu
    Copy the full SHA
    cd895b5 View commit details
    Browse the repository at this point in the history