mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2025-10-23 10:56:44 +08: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.