Skip to main content

check_frame_effects

Function check_frame_effects 

Source
pub fn check_frame_effects<C: EffectCatalog + ?Sized>(
    renderer: &C,
    frame: &FrameDesc<'_>,
) -> Result<(), EngineError>
Expand description

Checks that renderer draws every effect frame uses, naming the first it does not. FrameRenderer’s methods check the same, but answer with a RenderError, which cannot say which effect.

§Errors

Returns crate::EngineError::UnregisteredEffect.