Ember

BitsPerPixel

Sep 8th, 2014
353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.32 KB | None | 0 0
  1. const UByte Texture::FormatBitsPerPixel[116] =
  2. {
  3.     0,   //Unknown = 0,
  4.     128, //RGBA32Typeless = 1,
  5.     128, //RGBA32Float = 2,
  6.     128, //RGBA32UInt = 3,
  7.     128, //RGBA32SInt = 4,
  8.     96,  //RGB32Typeless = 5,
  9.     96,  //RGB32Float = 6,
  10.     96,  //RGB32UInt = 7,
  11.     96,  //RGB32SInt = 8,
  12.     64,  //RGBA16Typeless = 9,
  13.     64,  //RGBA16Float = 10,
  14.     64,  //RGBA16UNorm = 11,
  15.     64,  //RGBA16UInt = 12,
  16.     64,  //RGBA16SNorm = 13,
  17.     64,  //RGBA16SInt = 14,
  18.     64,  //RG32Typeless = 15,
  19.     64,  //RG32Float = 16,
  20.     64,  //RG32UInt = 17,
  21.     64,  //RG32SInt = 18,
  22.     64,  //R32G8X24Typeless = 19,
  23.     64,  //D32FloatS8X24UInt = 20,
  24.     64,  //R32FloatX8X24Typeless = 21,
  25.     64,  //X32TypelessG8X24UInt = 22,
  26.     32,  //RGB10A2Typeless = 23,
  27.     32,  //RGB10A2UNorm = 24,
  28.     32,  //RGB10A2UInt = 25,
  29.     32,  //RG11B10Float = 26,
  30.     32,  //RGBA8Typeless = 27,
  31.     32,  //RGBA8UNorm = 28,
  32.     32,  //RGBA8UNorm_sRGB = 29,
  33.     32,  //RGBA8UInt = 30,
  34.     32,  //RGBA8SNorm = 31,
  35.     32,  //RGBA8SInt = 32,
  36.     32,  //RG16Typeless = 33,
  37.     32,  //RG16Float = 34,
  38.     32,  //RG16UNorm = 35,
  39.     32,  //RG16UInt = 36,
  40.     32,  //RG16SNorm = 37,
  41.     32,  //RG16SInt = 38,
  42.     32,  //R32Typeless = 39,
  43.     32,  //D32Float = 40,
  44.     32,  //R32Float = 41,
  45.     32,  //R32UInt = 42,
  46.     32,  //R32SInt = 43,
  47.     32,  //R24G8Typeless = 44,
  48.     32,  //D24UNormS8UInt = 45,
  49.     32,  //R24UNormX8Typeless = 46,
  50.     32,  //X24TypelessG8UInt = 47,
  51.     16,  //RG8Typeless = 48,
  52.     16,  //RG8UNorm = 49,
  53.     16,  //RG8UInt = 50,
  54.     16,  //RG8SNorm = 51,
  55.     16,  //RG8SInt = 52,
  56.     16,  //R16Typeless = 53,
  57.     16,  //R16Float = 54,
  58.     16,  //D16UNorm = 55,
  59.     16,  //R16UNorm = 56,
  60.     16,  //R16UInt = 57,
  61.     16,  //R16SNorm = 58,
  62.     16,  //R16SInt = 59,
  63.     8,   //R8Typeless = 60,
  64.     8,   //R8UNorm = 61,
  65.     8,   //R8UInt = 62,
  66.     8,   //R8SNorm = 63,
  67.     8,   //R8SInt = 64,
  68.     8,   //A8UNorm = 65,
  69.     1,   //R1UNorm = 66,
  70.     16,  //RGB9E5_SHAREDEXP = 67,
  71.     16,  //RG8BG8UNorm = 68,
  72.     16,  //GR8GB8UNorm = 69,
  73.     4,   //BC1Typeless = 70,
  74.     4,   //BC1UNorm = 71,
  75.     4,   //BC1UNorm_sRGB = 72,
  76.     8,   //BC2Typeless = 73,
  77.     8,   //BC2UNorm = 74,
  78.     8,   //BC2UNorm_sRGB = 75,
  79.     8,   //BC3Typeless = 76,
  80.     8,   //BC3UNorm = 77,
  81.     8,   //BC3UNorm_sRGB = 78,
  82.     8,   //BC4Typeless = 79,
  83.     8,   //BC4UNorm = 80,
  84.     8,   //BC4SNorm = 81,
  85.     8,   //BC5Typeless = 82,
  86.     8,   //BC5UNorm = 83,
  87.     8,   //BC5SNorm = 84,
  88.     16,  //B5G6R5UNorm = 85,
  89.     16,  //BGR5A1UNorm = 86,
  90.     32,  //BGRA8UNorm = 87,
  91.     32,  //BGRX8UNorm = 88,
  92.     32,  //RGB10_XR_BIAS_A2UNorm = 89,
  93.     32,  //BGRA8Typeless = 90,
  94.     32,  //BGRA8UNorm_sRGB = 91,
  95.     32,  //BGRX8Typeless = 92,
  96.     32,  //BGRX8UNorm_sRGB = 93,
  97.     8,   //BC6HTypeless = 94,
  98.     8,   //BC6HUF16 = 95,
  99.     8,   //BC6HSF16 = 96,
  100.     8,   //BC7Typeless = 97,
  101.     8,   //BC7UNorm = 98,
  102.     8,   //BC7UNorm_sRGB = 99,
  103.     0,   //AYUV = 100,
  104.     0,   //Y410 = 101,
  105.     0,   //Y416 = 102,
  106.     0,   //NV12 = 103,
  107.     0,   //P010 = 104,
  108.     0,   //P016 = 105,
  109.     0,   //OPAQUE_420 = 106,
  110.     0,   //YUY2 = 107,
  111.     0,   //Y210 = 108,
  112.     0,   //Y216 = 109,
  113.     0,   //NV11 = 110,
  114.     0,   //AI44 = 111,
  115.     0,   //IA44 = 112,
  116.     0,   //P8 = 113,
  117.     0,   //A8P8 = 114,
  118.     0    //BGRA4UNorm = 115
  119. };
Advertisement
Add Comment
Please, Sign In to add comment