Skip to main content

update_sparse_buffers

Function update_sparse_buffers 

Source
pub fn update_sparse_buffers(
    sparse_buffer_update_jobs: Res<'_, SparseBufferUpdateJobs>,
    sparse_buffer_update_bind_groups: Res<'_, SparseBufferUpdateBindGroups>,
    pipeline_cache: Res<'_, PipelineCache>,
    render_context: RenderContext<'_, '_>,
)
Expand description

A system, part of the render graph, that performs sparse buffer updates to buffers for which only a small number of elements have changed.

This runs as early in the pipeline as possible so that sparse buffers can be used for any subsequent pass.

Runs in RenderGraphSystems::Begin.