bevy_render::render_phase

Trait CachedRenderPipelinePhaseItem

Source
pub trait CachedRenderPipelinePhaseItem: PhaseItem {
    // Required method
    fn cached_pipeline(&self) -> CachedRenderPipelineId;
}
Expand description

A PhaseItem item, that automatically sets the appropriate render pipeline, cached in the PipelineCache.

You can use the SetItemPipeline render command to set the pipeline for this item.

Required Methods§

Source

fn cached_pipeline(&self) -> CachedRenderPipelineId

The id of the render pipeline, cached in the PipelineCache, that will be used to draw this phase item.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§