rafx_plugins/phases/
post_process_render_phase.rs

1use rafx::render_features::RenderFeatureSubmitNode;
2
3rafx::declare_render_phase!(
4    PostProcessRenderPhase,
5    POST_PROCESS_RENDER_PHASE_INDEX,
6    post_process_render_phase_sort_submit_nodes
7);
8
9#[profiling::function]
10fn post_process_render_phase_sort_submit_nodes(submit_nodes: &mut Vec<RenderFeatureSubmitNode>) {
11    // This render phase doesn't submit nodes and does not need sorting. It exists so that materials
12    // and render target metas can be associated with it in the pipeline cache. This keeps pipelines
13    // loaded and available across frames, and allows new materials to be built during the asset
14    // load instead of on the render code path
15    assert!(submit_nodes.is_empty());
16}