Add option to automatically generate mips for textures created from code

This commit is contained in:
Wojciech Figat
2021-11-09 16:26:28 +01:00
parent 4c4c6e8f03
commit e34d3285c2
3 changed files with 35 additions and 5 deletions

View File

@@ -43,7 +43,7 @@ DECLARE_ASSET_HEADER(TextureBase);
/// <param name="mipIndex">Index of the mip.</param>
/// <param name="linear">True if use linear filer, otherwise point filtering.</param>
/// <returns>True if failed, otherwise false.</returns>
bool GenerateMip(int32 mipIndex, bool linear);
bool GenerateMip(int32 mipIndex, bool linear = false);
};
protected: