Sign in to follow this  

The Z-Buffer for the Mutiple Render Target

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

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

This topic is 3196 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.

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