d44c9cceb1
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. |
||
---|---|---|
.. | ||
agal-helper | ||
src | ||
tests | ||
Cargo.toml |