AmaroK86.ImageFormat.DDSImage.getBytesPerPixel C# (CSharp) Метод

getBytesPerPixel() публичный статический Метод

public static getBytesPerPixel ( DDSFormat ddsFormat ) : double
ddsFormat DDSFormat
Результат double
        public static double getBytesPerPixel(DDSFormat ddsFormat)
        {
            switch (ddsFormat)
            {
                case DDSFormat.DXT1: return 0.5;
                case DDSFormat.DXT5:
                case DDSFormat.ATI2: return 1;
                case DDSFormat.V8U8: return 2;
            }
            throw new Exception("invalid texture format");
        }