Jump to content
  • Advertisement
Sign in to follow this  
Quat

[d3d10] disabling backbuffer writes

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

Hello, I want to build a depth map in a separate rendering pass. During this pass, I only need depth info, so no need to render to the back buffer. How can I disable rendering to the back buffer so that the hardware will actually skip it? Is setting a NULL pixel shader enough?

Share this post


Link to post
Share on other sites
Advertisement
If you want only write to a depth buffer you should only set this depth buffer during your OMSetRenderTragets call. Another way is set the RenderTargetWriteMask element of the D3D10_BLEND_DESC to 0.

Setting the pixel shader to NULL should not solve the problem as it is normally the sign that you are not interested at the pixels at all.

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!