Sign in to follow this  
51mon

StretchRect a depth buffer in DX10

Recommended Posts

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this