Internal
Cleans up the sampler cache for a specific engine instance. This should be called when an engine is destroyed to prevent memory leaks.
The engine instance being destroyed
Cleans up the sampler cache for a specific engine instance. This should be called when an engine is destroyed to prevent memory leaks.