Converts length per pixel to GLenum(pixel format).
assert( 4.toFormat == GL_RGBA );
See Implementation
Converts length per pixel to GLenum(pixel format).