Jump to content

  • Log In with Google      Sign In   
  • Create Account


[OpenGL] Reusing Depth buffer


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 JimC1664   Members   -  Reputation: 179

Like
0Likes
Like

Posted 23 August 2012 - 10:06 AM

Quick one as my google foo is failing me..

I am curious if I can reuse my depth buffer later in the process in a different format,
( it's originally f32 I want to recycle it later as rgba_u8, so same bit count )

I think this is possible with DX via differing resource views but I am much less familiar with OpenGl.

I imagine one would bind it and redefine its format via glTexImage2D(..) ?
If it does/would work would there then be anyway weird hidden costs from doing this?

Thanks
-JimC

Sponsor:

#2 Arkhyl   Members   -  Reputation: 536

Like
0Likes
Like

Posted 29 August 2012 - 05:23 AM

I think texture views (http://www.opengl.org/registry/specs/ARB/texture_view.txt), introduced in OpenGL 4.3, might be able to do this.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS