Skip to content
  • ReinUsesLisp's avatar
    shader_cache: Implement a generic shader cache · dc272523
    ReinUsesLisp authored
    Implement a generic shader cache for fast lookups and invalidations.
    Invalidations are cheap but expensive when a shader is invalidated.
    
    Use two mutexes instead of one to avoid locking invalidations for
    lookups and vice versa. When a shader has to be removed, lookups are
    locked as expected.
    dc272523
Loading