bevy/crates/bevy_render/src
Jakob Hellermann 551d9f6cd7 use error scope to handle errors on shader module creation (#3675)
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.
2022-03-29 22:39:14 +00:00
..
camera register Camera{2,3}d components for reflection (#4269) 2022-03-20 21:54:11 +00:00
color Add conversions from Color to u32 (#4088) 2022-03-08 00:46:03 +00:00
mesh Mesh Skinning. Attempt #3 (#4238) 2022-03-29 18:31:13 +00:00
primitives Faster view frustum culling (#4181) 2022-03-19 04:41:28 +00:00
render_graph bevy_render: Support removal of nodes, edges, subgraphs (#3048) 2022-03-21 23:58:37 +00:00
render_phase Compute Pipeline Specialization (#3979) 2022-03-23 00:27:26 +00:00
render_resource use error scope to handle errors on shader module creation (#3675) 2022-03-29 22:39:14 +00:00
renderer Use more ergonomic span syntax (#4246) 2022-03-18 04:19:21 +00:00
texture Introduce SystemLabel's for RenderAssetPlugin, and change Image preparation system to run before others (#3917) 2022-03-29 19:44:45 +00:00
view Faster view frustum culling (#4181) 2022-03-19 04:41:28 +00:00
lib.rs Compute Pipeline Specialization (#3979) 2022-03-23 00:27:26 +00:00
render_asset.rs Introduce SystemLabel's for RenderAssetPlugin, and change Image preparation system to run before others (#3917) 2022-03-29 19:44:45 +00:00
render_component.rs Obviate the need for RunSystem, and remove it (#3817) 2022-03-15 02:16:55 +00:00
settings.rs bevy_render: Use RenderDevice to get limits/features and expose AdapterInfo (#3931) 2022-02-16 21:17:37 +00:00