- /**
- * GL_EXT_texture_multisample_blit_scaled implementation assumes that
- * samples are laid out in a rectangular grid roughly corresponding to
- * sample locations within a pixel. Below SampleMap{2,4,8}x variables
- * are used to map indices of rectangular grid to sample numbers within
- * a pixel. This mapping of indices to sample numbers must be initialized
- * by the driver for the target hardware. For example, if we have the 8X
- * MSAA sample number layout (sample positions) for XYZ hardware:
- *
- * sample indices layout sample number layout
- * --------- ---------
- * | 0 | 1 | | a | b |
- * --------- ---------
- * | 2 | 3 | | c | d |
- * --------- ---------
- * | 4 | 5 | | e | f |
- * --------- ---------
- * | 6 | 7 | | g | h |
- * --------- ---------
- *
- * Where a,b,c,d,e,f,g,h are integers between [0-7].
- *
- * Then, initialize the SampleMap8x variable for XYZ hardware as shown
- * below:
- * SampleMap8x = {a, b, c, d, e, f, g, h};
- *
- * Follow the logic for sample counts 2-8.
- *
- * For 16x the sample indices layout as a 4x4 grid as follows:
- *
- * -----------------
- * | 0 | 1 | 2 | 3 |
- * -----------------
- * | 4 | 5 | 6 | 7 |
- * -----------------
- * | 8 | 9 |10 |11 |
- * -----------------
- * |12 |13 |14 |15 |
- * -----------------
- */
- uint8_t SampleMap2x[2];
- uint8_t SampleMap4x[4];
- uint8_t SampleMap8x[8];
- uint8_t SampleMap16x[16];
-