bevy/crates/bevy_render/src/pipeline
Jakob Hellermann 9e55d8dbb4 Error message improvements for shader compilation/gltf loading (#1786)
- prints glsl compile error message in multiple lines instead of `thread 'main' panicked at 'called Result::unwrap() on an Err value: Compilation("glslang_shader_parse:\nInfo log:\nERROR: 0:335: \'assign\' :  l-value required \"anon@7\" (can\'t modify a uniform)\nERROR: 0:335: \'\' : compilation terminated \nERROR: 2 compilation errors.  No code generated.\n\n\nDebug log:\n\n")', crates/bevy_render/src/pipeline/pipeline_compiler.rs:161:22`
- makes gltf error messages have more context

New error:
```rust
thread 'Compute Task Pool (5)' panicked at 'Shader compilation error:
glslang_shader_parse:
Info log:
ERROR: 0:12: 'assign' :  l-value required "anon@1" (can't modify a uniform)
ERROR: 0:12: '' : compilation terminated 
ERROR: 2 compilation errors.  No code generated.
', crates/bevy_render/src/pipeline/pipeline_compiler.rs:364:5
```


These changes are a bit unrelated. I can open separate PRs if someone wants that.
2021-04-13 02:56:30 +00:00
..
bind_group.rs Switch usage of std HashMap/HashSet default hasher, to aHash algo (#258) 2020-08-28 17:08:51 -07:00
binding.rs format comments (#1612) 2021-03-11 00:27:30 +00:00
mod.rs enforce clippy for all target and features 2020-08-16 07:20:06 -07:00
pipeline_compiler.rs Error message improvements for shader compilation/gltf loading (#1786) 2021-04-13 02:56:30 +00:00
pipeline_layout.rs format comments (#1612) 2021-03-11 00:27:30 +00:00
pipeline.rs Update to wgpu-rs 0.7 (#542) 2021-01-31 20:06:42 -08:00
render_pipelines.rs Frustum Culling (for Sprites) (#1492) 2021-03-24 21:29:53 +00:00
state_descriptors.rs Reflection cleanup (#1536) 2021-03-09 23:39:41 +00:00
vertex_buffer_descriptor.rs Update to wgpu-rs 0.7 (#542) 2021-01-31 20:06:42 -08:00
vertex_format.rs Mesh overhaul with custom vertex attributes #592 (#599) 2020-10-30 19:21:53 -07:00