Imagination PowerVR SDK Blog

How much memory does GL_ALPHA use?


#1

Just a quicky question :wink:

How much texture memory per pixel does it use when you use GL_ALPHA:

    glTexImage2D(GL_TEXTURE_2D, 0, GL_ALPHA, Width, Height,
            0, GL_ALPHA, GL_UNSIGNED_BYTE, pData);

Thanks for any info.


#2

On pretty much any implementation (certainly on MBX and SGX) it should be one byte per pixel, though most hardware has certain stride requirements affecting small textures, e.g. width may be rounded up to a multiple of 16 or so.


#3

Thanks for the info :wink: