Add a PrepareBatches render set that runs after PrepareResources.#10234
Add a PrepareBatches render set that runs after PrepareResources.#10234pcwalton wants to merge 1 commit intobevyengine:mainfrom
PrepareBatches render set that runs after PrepareResources.#10234Conversation
PR bevyengine#10231 needs to add some logic that runs as part of `PrepareResources` but before batch building, because it creates data that batch building needs. This commit adds a new render set for this. It was split out of bevyengine#10231 at reviewer request.
|
Hmm, I’ll need to look more closely at this. It’s not obvious if it’s necessary / useful to add another render set at a glance. It isn’t harmful for sure and maybe it is indeed useful for specifying dependencies more simply for your case. |
|
@superdump Look at the interaction between https://github.com/bevyengine/bevy/pull/10231/files#diff-cbd1eecdb5d976e19535f4a9afc4d7cf545c4e4648c58eadecc1880f8304929aR160-R202 and https://github.com/bevyengine/bevy/pull/10231/files#diff-4bf3ed03d4129aad9f5678ba19f9b14ee8e3e61d6f6365e82197b01c74468b10R472-R484. |
|
Closed as this is no longer blocking anything. |
Objective
PR #10231 needs to add some logic that runs as part of
PrepareResourcesbut before batch building, because it creates data that batch building needs (the lightmap index, which is part of theMeshstructure).Solution
This PR adds a new render set for the batching operations. It was split out of #10231 at reviewer request.