bevy/crates/bevy_render/src
Johan Klokkhammer Helsing dea292d199 Derive thiserror::Error for HexColorError (#2740)
# Objective

- Make it easy to use HexColorError with `thiserror`, i.e. converting it into other error types.

Makes this possible:

```rust
#[derive(Debug, thiserror::Error)]
pub enum LdtkError {
    #[error("An error occured while deserializing")]
    Json(#[from] serde_json::Error),
    #[error("An error occured while parsing a color")]
    HexColor(#[from] bevy::render::color::HexColorError),
}
```

## Solution

- Derive thiserror::Error the same way we do elsewhere (see query.rs for instance)
2021-08-30 21:56:13 +00:00
..
camera System Param Lifetime Split (#2605) 2021-08-15 20:51:53 +00:00
mesh System Param Lifetime Split (#2605) 2021-08-15 20:51:53 +00:00
pass update for wgpu 0.8 (#1959) 2021-05-02 20:45:25 +00:00
pipeline Fix some nightly clippy lints (#2522) 2021-07-29 20:52:15 +00:00
render_graph System Param Lifetime Split (#2605) 2021-08-15 20:51:53 +00:00
renderer Enable downcasting of RenderContext (#2240) 2021-05-24 19:38:33 +00:00
shader Better error message for unsupported shader features Fixes #869 (#2598) 2021-08-13 22:21:33 +00:00
texture Fix some nightly clippy lints (#2522) 2021-07-29 20:52:15 +00:00
wireframe System Param Lifetime Split (#2605) 2021-08-15 20:51:53 +00:00
color.rs Derive thiserror::Error for HexColorError (#2740) 2021-08-30 21:56:13 +00:00
colorspace.rs color spaces and representation (#1572) 2021-03-17 23:59:51 +00:00
draw.rs System Param Lifetime Split (#2605) 2021-08-15 20:51:53 +00:00
entity.rs Bevy ECS V2 (#1525) 2021-03-05 07:54:35 +00:00
lib.rs Down with the system! (#2496) 2021-07-27 23:42:36 +00:00