azul_webrender

Trait ProgramCacheObserver

Source
pub trait ProgramCacheObserver {
    // Required methods
    fn save_shaders_to_disk(&self, entries: Vec<Arc<ProgramBinary>>);
    fn set_startup_shaders(&self, entries: Vec<Arc<ProgramBinary>>);
    fn try_load_shader_from_disk(
        &self,
        digest: &ProgramSourceDigest,
        program_cache: &Rc<ProgramCache>,
    );
    fn notify_program_binary_failed(&self, program_binary: &Arc<ProgramBinary>);
}
Expand description

The interfaces that an application can implement to handle ProgramCache update

Required Methods§

Implementors§