Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
log pipeline cache errors earlier (bevyengine#6115)
# Objective - Currently, errors aren't logged as soon as they are found, they are logged only on the next frame. This means your shader could have an unreported error that could have been reported on the first frame. ## Solution - Log the error as soon as they are found, don't wait until next frame ## Notes I discovered this issue because I was simply unwrapping the `Result` from `PipelinCache::get_render_pipeline()` which caused it to fail without any explanations. Admittedly, this was a bit of a user error, I shouldn't have unwrapped that, but it seems a bit strange to wait until the next time the pipeline is processed to log the error instead of just logging it as soon as possible since we already have all the info necessary.
- Loading branch information