ruffle/render/wgpu
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
..
shaders wgpu: Slight optimization to color shader 2023-04-03 14:33:37 -07:00
src 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
uniforms.md wgpu: Moved ColorAdjustments into its own bind group, and reuse ColorAdjustments::IDENTITY where we can 2023-01-03 03:39:13 +01:00