ruffle/render
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
..
canvas fix(deps): update wasm-bindgen 2023-05-17 06:44:50 +03:00
naga-agal wgpu: Cache compiled naga-agal shader module 2023-06-08 02:57:47 -05:00
src core: Update gc_arena to 63dab12871321e0e5ada10ff1f1de8f4cf1764f9 2023-06-03 09:11:06 +02:00
webgl fix(deps): update wasm-bindgen 2023-05-17 06:44:50 +03:00
wgpu wgpu: Cache compiled naga-agal shader module 2023-06-08 02:57:47 -05:00
Cargo.toml wgpu: Cache compiled naga-agal shader module 2023-06-08 02:57:47 -05:00