bevy/crates/bevy_render
Gino Valente 137451b584
bevy_render: Derive Error on ViewportConversionError (#18336)
# Objective

The `ViewportConversionError` error type does not implement `Error`,
making it incompatible with `BevyError`.

## Solution

Derive `Error` for `ViewportConversionError`.

I chose to use `thiserror` since it's already a dependency, but do let
me know if we should be preferring `derive_more`.

## Testing

You can test this by trying to compile the following:

```rust
let error: BevyError = ViewportConversionError::InvalidData.into();
```
2025-03-16 18:58:30 +00:00
..
macros Make buffer binding arrays emit bind group layout entries and bindless resource descriptors again. (#18125) 2025-03-10 21:40:24 +00:00
src bevy_render: Derive Error on ViewportConversionError (#18336) 2025-03-16 18:58:30 +00:00
Cargo.toml Decoupled naga for wgpu testing (#18099) 2025-03-09 21:49:48 +00:00
LICENSE-APACHE Cleanup publish process (#17728) 2025-02-09 17:46:19 +00:00
LICENSE-MIT Cleanup publish process (#17728) 2025-02-09 17:46:19 +00:00
README.md Add README.md to all crates (#13184) 2024-05-02 18:56:00 +00:00

Bevy Render

License Crates.io Downloads Docs Discord