PDA

View Full Version : Which internal format should I use for 10bit image



pango
09-15-2008, 09:32 PM
I need to upload a 10bit image (called v210) to texture,I use the "GL_UNSIGNED_INT_2_10_10_10_REV" as the image's format,so which texture internal format should I use?I think GL_RGBA can not be used because its only 8bit for every component,use it will lost color precision,I choose GL_RGBA32F_ARB because I think it should keep 10bit precision,but I'm sure whether my guess is right,so any one can give me some sugession?Which is the best internal format for 10bit image?

arekkusu
09-15-2008, 11:31 PM
GL_RGB10_A2.

But you're not guaranteed that the driver supports it. It might convert to RGBA8.

What hardware are you using?