[][src]Trait azul_webrender::ProgramCacheObserver

pub trait ProgramCacheObserver {
    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>); }

The interfaces that an application can implement to handle ProgramCache update

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>)

Loading content...

Implementors

Loading content...