mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 12:43:34 +00:00
551d9f6cd7
related: https://github.com/bevyengine/bevy/pull/3289 In addition to validating shaders early when debug assertions are enabled, use the new [error scopes](https://gpuweb.github.io/gpuweb/#error-scopes) API when creating a shader module. I chose to keep the early validation (and thereby parsing twice) when debug assertions are enabled in, because it lets as handle errors ourselves and display them with pretty colors, while the error scopes API just gives us a string we can display. This change pulls in `futures-util` as a new dependency for `future.now_or_never()`. I can inline that part of futures-lite into `bevy_render` to keep the compilation time lower if that's preferred. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |