• Advertisement
Sign in to follow this  

StretchRect a depth buffer in DX10

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

Advertisement
There is no stretch function in Direct3D 10. But you can write a shader that will do the down filter for you in the way you want it.

Share this post


Link to post
Share on other sites
Quote:
Original post by Demirug
There is no stretch function in Direct3D 10. But you can write a shader that will do the down filter for you in the way you want it.


Thanks, there will be no problems or special cases since there is a depth buffer involved?

Share this post


Link to post
Share on other sites
Quote:
Original post by 51mon
Thanks, there will be no problems or special cases since there is a depth buffer involved?


I'm pretty sure you can bind a depth-stencil buffer as a shader resource only if its not multisampled (DX10.1 feature), but I haven't gotten around to needing to do this yet so I don't know anymore specifics.

I think NVidia's SDK 10 Soft Particles sample binds the depth buffer as a texture if you want example code or something.

Share this post


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

  • Advertisement