prepare_view_upscaling_pipelines
is ambiguous with dozens of other systems
#14770
Labels
A-Rendering
Drawing game state to the screen
C-Bug
An unexpected or incorrect behavior
D-Straightforward
Simple bug fixes and API improvements, docs, test and examples
S-Ready-For-Implementation
This issue is ready for an implementation PR. Go for it!
X-Contentious
There are nontrivial implications that should be thought through
Bevy version
a2fc9de
What you did
cargo run --example ambiguity_detection
What went wrong
prepare_view_upscaling_pipelines
is ambiguous with dozens of other systems, such asprepare_preprocess_bind_groups
This system uses
ResMut<PipelineCache>
, while every other system usesRes
(via interior mutability).Additional information
This was discovered as part of #7386. This system should run after all of its siblings, but doing so is quite intrusive.
@JMS55 suggests that we tackle this by making
PipelineCache::block_on
use interior mutability. Overall, the design here doesn't seem perfect. I'm inclined to just silence the ambiguity for now (which will have a similar effect) until a better solution is found.The text was updated successfully, but these errors were encountered: