PDA

View Full Version : FBO with mixed format texture



delfare
09-14-2008, 07:41 AM
hi,

I have read in an article (http://http.download.nvidia.com/developer/presentations/2004/6800_Leagues/6800_Leagues_Deferred_Shading.pdf)about deferred shading that the MRT can be used with mixed format texture (but the same number of bits)
for example : RT0 = R32f, RT1 = G16R16f, RT2 = ARGB8
(I have a geforcego 7300)

but I have tried with a GL_RGBA16 texture and 2 GL_RGBA16F_ARB textures but glCheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT) doesn't return GL_FRAMEBUFFER_COMPLETE_EXT (it returns GL_FRAMEBUFFER_COMPLETE_EXT when I use 3 GL_RGBA16 textures or 3 GL_RGBA16F_ARB textures).

what must I do to use mixed format textures in a fbo?

thanks,
delfare