How much memory does GL_ALPHA use?

This topic contains 2 replies, has 2 voices, and was last updated by  lefty 7 years, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #30170

    lefty
    Member

    Just a quicky question 😉

    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.

    #34001

    Xmas
    Member

    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.

    #34002

    lefty
    Member

    Thanks for the info 😉

Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.