Sign in to follow this  
Rfy Lee

The Z-Buffer for the Mutiple Render Target

Recommended Posts

I was use MRT for a "render to target" algorithm. I need Z-test to be on. And from the SDK I known I should create my own DepthStencil surface to make the size match. But as I have two render target (eg. 512X512 each),what size do I need to create My DepthStencil surface,512X512 or 1024X1024? I have set it to 512X512,but it seems that the z-test doesn't work, Is there any other things I need to do to achieve this?

Share this post


Link to post
Share on other sites
Quote:
Original post by MJP
Your DS surface should be 512x512, to match the dimensions of your render targets.


You are right, I'd resoved it. Thanks for reply!

Share this post


Link to post
Share on other sites
Quote:
Original post by MJP
Your DS surface should be 512x512, to match the dimensions of your render targets.


While matching the dimensions does sound like the right way to do things, I recall a larger depth/stencil would still work in MDX without any complaint from the debug runtimes. Has that changed more recently or did I just get lucky back then? [smile]

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