Add support for stripping texture resolution for target platform when cooking game

This commit is contained in:
Wojtek Figat
2021-06-17 16:01:01 +02:00
parent 4744fa05ef
commit 289515a78b
7 changed files with 234 additions and 88 deletions

View File

@@ -49,6 +49,8 @@ public:
/// The list of files on which this entry depends on. Cached date is the last edit time used to discard cache result on modification.
/// </summary>
FileDependenciesList FileDependencies;
bool IsValid(bool withDependencies = false);
};
/// <summary>
@@ -93,6 +95,7 @@ public:
{
bool ShadersNoOptimize;
bool ShadersGenerateDebugData;
Guid StreamingSettingsAssetId;
} Global;
} Settings;
@@ -134,6 +137,11 @@ public:
/// </summary>
void InvalidateShaders();
/// <summary>
/// Removes all cached entries for assets that contain a texture. This forces rebuild for them.
/// </summary>
void InvalidateTextures();
/// <summary>
/// Loads the cache for the given cooking data.
/// </summary>