close
Skip to content

bevy_render: load .spv assets#1104

Merged
cart merged 3 commits into
bevyengine:masterfrom
jakobhellermann:assets-load-spv
Dec 24, 2020
Merged

bevy_render: load .spv assets#1104
cart merged 3 commits into
bevyengine:masterfrom
jakobhellermann:assets-load-spv

Conversation

@jakobhellermann
Copy link
Copy Markdown
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
Copy Markdown
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