PresentParameters.EnableAutoDepthStencil Property (Microsoft.DirectX.Direct3D)
Retrieves or sets a Boolean value that indicates whether Microsoft Direct3D manages depth buffers for an application.
Definition
Visual Basic Public Property EnableAutoDepthStencil As Boolean C# public bool EnableAutoDepthStencil { get; set; } C++ public:
property bool EnableAutoDepthStencil {
bool get();
void set(bool value);
}JScript public function get EnableAutoDepthStencil() : boolean
public function set EnableAutoDepthStencil(boolean);
Property Value
System.Boolean
Value that is true if 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.