mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2025-03-08 15:37:43 +01:00
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.