Microsoft DirectX 9.0 SDK Update (October 2004)

Retrieving a Depth Buffer

Language:

Note: This documentation is preliminary and is subject to change.

The following C# code example demonstrates how to use the Device.DepthStencilSurface property to retrieve a Surface object that describes the depth-buffer surface owned by the device.

          [C#]
          
Device device = null; Surface surface = null; // Create the device. . . . surface = device.DepthStencilSurface;

© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center