Advertisement Jump to content
Sign in to follow this  
NicholasYang

How to set a texture as a depth buffer

This topic is 4099 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

My Question is: In Dx10, I first rendered a texture with format DXGI_FORMAT_R32_FLOAT, then I wanted to set this texture as a depth buffer for other passes of rendering so that it can help to reject some pixel. How can I achieve such style? Thanks a lot!

Share this post


Link to post
Share on other sites
Advertisement
Off the top of my head you need to create a _TYPELESS resource and then create two views into it - one as R32_FLOAT and one as D32_FLOAT.

hth
Jack

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!