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

bevy_render: load .spv assets #1104

Merged
merged 3 commits into from
Dec 24, 2020
Merged

Conversation

jakobhellermann
Copy link
Contributor

The shader stage is determined by spirv_reflect.
Hot reloading does not work since the specialized_shaders for spirv-shaders apparently are empty. I'm not sure why that is (I know relatively little about the internals), maybe I can create a follow-up PR once that works as well.

@memoryruins memoryruins added the A-Rendering Drawing game state to the screen label Dec 22, 2020
@cart
Copy link
Member

cart commented Dec 24, 2020

I fixed hot reloading by removing a special case that disabled "specialization" for spirv. The intent behind the code was to prevent people "incorrectly" specializing spirv (which does nothing) from accidentally compiling multiple instances of the same shader. But i'd rather have hot-reloading work. We can re-add similar logic later if it becomes a real problem.

@cart cart merged commit 0a51a26 into bevyengine:master Dec 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants