rafx-plugins 0.0.16

Rendering framework built on an extensible asset pipeline
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use rafx::render_features::RenderFeatureSubmitNode;

rafx::declare_render_phase!(
    PostProcessRenderPhase,
    POST_PROCESS_RENDER_PHASE_INDEX,
    post_process_render_phase_sort_submit_nodes
);

#[profiling::function]
fn post_process_render_phase_sort_submit_nodes(submit_nodes: &mut Vec<RenderFeatureSubmitNode>) {
    // This render phase doesn't submit nodes and does not need sorting. It exists so that materials
    // and render target metas can be associated with it in the pipeline cache. This keeps pipelines
    // loaded and available across frames, and allows new materials to be built during the asset
    // load instead of on the render code path
    assert!(submit_nodes.is_empty());
}