Microsoft DirectX 9.0 SDK Update (October 2004)

PresentParameters.EnableAutoDepthStencil Property

Language:

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

Retrieves or sets a Boolean value that indicates whether Microsoft® Direct3D® manages depth buffers for an application.

Definition

Visual Basic .NET Public Property EnableAutoDepthStencil As Boolean
C# public bool EnableAutoDepthStencil { get; set; }
Managed C++ public: __property bool get_EnableAutoDepthStencil();
public: __property void set_EnableAutoDepthStencil(bool);
JScript .NET public function get EnableAutoDepthStencil() : boolean
public function set EnableAutoDepthStencil(boolean);

Property Value

System.Boolean . Value that is true if Microsoft® Direct3D® manages the depth buffers, or false if it does not.

This property is read/write. 

Remarks

When the device is created, it creates a depth stencil buffer that is automatically set as its render target. When the device is reset, the depth stencil buffer is automatically destroyed and re-created in the new size.

If EnableAutoDepthStencil is true, AutoDepthStencilFormat must be a valid depth stencil format.


© 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