mirror of
https://github.com/bevyengine/bevy
synced 2024-12-21 02:23:08 +00:00
517deda215
# Objective - Allow rendering queue systems to use a `Res<PipelineCache>` even for queueing up new rendering pipelines. This is part of unblocking parallel execution queue systems. ## Solution - Make `PipelineCache` internally mutable w.r.t to queueing new pipelines. Pipelines are no longer immediately updated into the cache state, but rather queued into a Vec. The Vec of pending new pipelines is then later processed at the same time we actually create the queued pipelines on the GPU device. --- ## Changelog `PipelineCache` no longer requires mutable access in order to queue render / compute pipelines. ## Migration Guide * Most usages of `resource_mut::<PipelineCache>` and `ResMut<PipelineCache>` can be changed to `resource::<PipelineCache>` and `Res<PipelineCache>` as long as they don't use any methods requiring mutability - the only public method requiring it is `process_queue`. |
||
---|---|---|
.. | ||
clustered_forward.wgsl | ||
depth.wgsl | ||
light.rs | ||
mesh.rs | ||
mesh.wgsl | ||
mesh_bindings.wgsl | ||
mesh_functions.wgsl | ||
mesh_types.wgsl | ||
mesh_vertex_output.wgsl | ||
mesh_view_bindings.wgsl | ||
mesh_view_types.wgsl | ||
mod.rs | ||
pbr.wgsl | ||
pbr_bindings.wgsl | ||
pbr_functions.wgsl | ||
pbr_lighting.wgsl | ||
pbr_types.wgsl | ||
shadows.wgsl | ||
skinning.wgsl | ||
utils.wgsl | ||
wireframe.wgsl |