[ATOM-14935] MaterialHotReloadTest Fails On Second Try (#1384)

[ATOM-14544] Add Reset() function to IShaderVariantFinder

ShaderVariantAsyncLoader::Reset() now Shutdown and Init(). It clears
the cache of ShaderVariantAssets it keeps in memory.

Signed-off-by: garrieta <garrieta@amazon.com>
This commit is contained in:
galibzon
2021-06-16 20:56:39 -05:00
committed by GitHub
parent 6cd1c44b7e
commit 1097cb7ce3
@@ -323,9 +323,8 @@ namespace AZ
void ShaderVariantAsyncLoader::Reset()
{
// [GFX TODO ATOM-14544] Idealy we want to be able to reset the ShaderVariantAsyncLoader but this is causing some problems that need to be worked out first.
//Shutdown();
//Init();
Shutdown();
Init();
}
///////////////////////////////////////////////////////////////////