ruffle/render/naga-agal
Aaron Hill d44c9cceb1 wgpu: Cache compiled naga-agal shader module
We use an `lru::LruCache` inside `ShaderModuleAgal`. This automatically
gives us the proper garbage-collection behavior (when the Flash
Program3D instance is garbage collected, we'll drop the
`ShaderModuleAgal` and the cache).

The cache is keyed on the data needed to compile the shader (vertex
attributes and sampler overrides). This lets us avoid shader
recompilations when a Stage3D program repeatedly uses the same
Program3D with different sampler overrides / vertex attribute formats.
2023-06-08 02:57:47 -05:00
..
agal-helper agal: Add support for indirect register loads 2023-05-21 09:40:11 -05:00
src wgpu: Cache compiled naga-agal shader module 2023-06-08 02:57:47 -05:00
tests naga-agal: Fix bugs and add tests for new ops 2023-05-24 13:34:15 -05:00
Cargo.toml chore(deps): lock file maintenance rust dependencies 2023-06-04 22:53:18 -05:00