Fixed a bug with clearing the shader cache
@@ -16,6 +16,7 @@ class DemoShaderCompile : ITest
{
// Delete all cached shader files
string cachePath = Path.Combine(Path.GetTempPath(), "cache");
+ if (Directory.Exists(cachePath))
Array.ForEach(Directory.GetFiles(cachePath), (p) => File.Delete(p));
// Build a shader from an HLSL code string
