bevy/crates/bevy_ui/src/render
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
..
mod.rs Cosmic text (#10193) 2024-07-04 20:41:08 +00:00
pipeline.rs Add border radius to UI nodes (adopted) (#12500) 2024-03-19 22:44:00 +00:00
render_pass.rs Don't ignore draw errors (#13240) 2024-07-22 19:22:30 +00:00
ui.wgsl Fix a few "repeated word" typos (#13955) 2024-06-20 21:35:20 +00:00
ui_material.wgsl Normalise matrix naming (#13489) 2024-06-03 16:56:53 +00:00
ui_material_pipeline.rs Don't ignore draw errors (#13240) 2024-07-22 19:22:30 +00:00
ui_vertex_output.wgsl Include UI node size in the vertex inputs for UiMaterial. (#11722) 2024-02-06 16:15:09 +00:00