public static CprFormat ( string format ) : bool | ||
format | string | |
return | bool |
public static bool CprFormat(string format)
{
switch (format)
{
case "DXT1":
case "DXT5":
case "ATI2": return true;
case "V8U8":
case "A8R8G8B8":
case "G8":
case "R8G8B8": return false;
default: throw new FormatException("Unknown Format");
}
}
}