2023-01-14 11:31:39 -05:00

12 lines
356 B
C#

using AssetRipper.SourceGenerated.Enums;
namespace AssetRipper.SourceGenerated.Extensions;
public static class TextureFormatExtensions
{
public static bool IsCrunched(this TextureFormat format)
{
return format is TextureFormat.DXT1Crunched or TextureFormat.DXT5Crunched or TextureFormat.ETC_RGB4Crunched or TextureFormat.ETC2_RGBA8Crunched;
}
}