[SlimDX, DX9] Change depth buffer.

Started by
-1 comments, last by user88 13 years, 7 months ago
Is it possible to change depth buffer surface when AutoDepthStencil is enabled?

For some purpose i want to draw scene with usage of two depth buffers. I render part of 3d objects with original depth buffer. Then i create addition depth buffer set it to device and render other part of 3d objects with addition depth buffer. Then set original depth buffer to device and dispose the additional depth buffer. As result all 3d objects which used additional depth buffer is visible on back buffer. Some objects which which used original depth buffer is visible on back buffer and someone no.

Note, I clear two depth buffers before usage. In PIX my scene renders correctly. This means that all 3d objects are on frame buffer. There are no any information in debug output.

This topic is closed to new replies.

Advertisement