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

Deterministic output #75

Merged
merged 5 commits into from
Feb 2, 2024
Merged

Conversation

robtfm
Copy link
Collaborator

@robtfm robtfm commented Jan 31, 2024

fix OS-level shader caching by switching to IndexMap to maintain naga's deterministic output.

@Elabajaba
Copy link
Contributor

Works for me (tested on bevy by dumping the shaders and comparing hashes/file contents with some local changes to bevyengine/bevy#11614 to dump all the shaders instead of overriding them every new compile, and by checking with a profiler that the drivers were no longer recompiling shaders every run).

@robtfm robtfm merged commit 33e57e4 into bevyengine:master Feb 2, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants