bevy/crates/bevy_render/src/render_graph
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
..
app.rs Refactor App and SubApp internals for better separation (#9202) 2024-03-31 03:16:10 +00:00
context.rs Fix intra-doc links and make CI test them (#14076) 2024-07-11 13:08:31 +00:00
edge.rs Fix beta lints (#12980) 2024-04-16 02:46:46 +00:00
graph.rs Fix intra-doc links and make CI test them (#14076) 2024-07-11 13:08:31 +00:00
mod.rs RenderGraph Labelization (#10644) 2024-01-31 14:51:19 +00:00
node_slot.rs Use position in code when possible (#7621) 2023-02-11 08:28:14 +00:00
node.rs Don't ignore draw errors (#13240) 2024-07-22 19:22:30 +00:00