cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

fscan
Journeyman III

FBO depth texture performance

Hi,

Does anyone know what the performance implications are using a texture as depth/stencil buffer for an fbo? As i see it, i have 2 choices:

1) Use glFramebufferTexture2D as depth buffer, render everything then use the texture for post processing.

2) Use glFramebufferRenderbuffer as depth buffer, render everything, copy buffer to texture then use texture for post processing.

My question is, does using a texture as depth/stencil buffer impact rendering performance? Do i lose performance features like hierarchical z?

Which version would probably be faster, also for future hardware generations?

0 Likes
2 Replies
mdmannan
Journeyman III

Re: FBO depth texture performance

thanks for this artical

0 Likes
sanpol
Adept I

Re: FBO depth texture performance

Interested in answers to those questions as well.

0 Likes