Jump to content
  • Advertisement
Sign in to follow this  
IrYoKu1

glBlitFramebufferEXT vs. rendering to lower resolution fbo

This topic is 3414 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey guys! I need to downsample a texture to 1/2 of its size. Someone knows how glBlitFramebufferEXT is usually implemented? I assume it will be done using shaders and not a special and faster hardware mechanism for doing the copy. If someone has experience with this, maybe knows what will be faster, glBlitFramebufferEXT or simply rendering a quad binded with the texture to a framebuffer with the desired resolution? (via custom shader that only perform the necessary operations) Thanks!

Share this post


Link to post
Share on other sites
Advertisement
what u do need a special shader for the second version?
just draw a texture at half the dimensions, this is the same as a blit to half the dimensions

Share this post


Link to post
Share on other sites
because in a custom shader I can only perform the needed operations, and skip all the lighting, vertex color and material stuff.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!