bevy/crates/bevy_render/src/render_phase
IceSentry 3faca1e549
Don't ignore draw errors (#13240)
# Objective

- It's possible to have errors in a draw command, but these errors are
ignored

## Solution

- Return a result with the error

## Changelog

Renamed `RenderCommandResult::Failure` to `RenderCommandResult::Skip`
Added a `reason` string parameter to `RenderCommandResult::Failure`

## Migration Guide
If you were using `RenderCommandResult::Failure` to just ignore an error
and retry later, use `RenderCommandResult::Skip` instead.

This wasn't intentional, but this PR should also help with
https://github.com/bevyengine/bevy/issues/12660 since we can turn a few
unwraps into error messages now.

---------

Co-authored-by: Charlotte McElwain <charlotte.c.mcelwain@gmail.com>
2024-07-22 19:22:30 +00:00
..
draw_state.rs Add pipeline statistics (#9135) 2024-03-17 20:29:35 +00:00
draw.rs Don't ignore draw errors (#13240) 2024-07-22 19:22:30 +00:00
mod.rs Don't ignore draw errors (#13240) 2024-07-22 19:22:30 +00:00
rangefinder.rs Normalise matrix naming (#13489) 2024-06-03 16:56:53 +00:00