opengl - MSAA resolve into texture attachment of the same FBO -


i have been using several custom fbos. fbo-a has msaa texture attached geometry rendered.then resolved blitting msaa texture attachment of fbo-a regular tex 2d attachment of fbo-b.this procedure implies switching between multiple fbos , stated in several sources more performance wise rather switch between attachments between different fbos. tried set both msaa texture , regular 1 attached same fbo. found can't resolve blitting. if texture copy msaa regular 1 ,will msaa resolved blitting?

update:

just interested know whether it's worth (performance wise) use several fbos vs several attachments in single fbo. did test (nvidia quadro 4000) , result pretty identical fps (+= 15-20 frames).it hardware , ogl implementation dependent though.

i tried set both msaa texture , regular 1 attached same fbo. found can't resolve blitting.

of course not. in order blit, source , destination framebuffers must complete. , 1 of rules of completeness states of attached images must have same number of samples.

if texture copy msaa regular 1 ,will msaa resolved blitting?

what mean "texture copy?"

if you're talking using new 4.3/arb_copy_image glcopyimagesubdata, no. again, sample counts of source , destination images must match.

if you're talking copying framebuffers textures using glcopytexsubimage2d , like, yes, perform multisample resolve.

however, should blit.


Comments