PresentParameters.EnableAutoDepthStencil Property |
Language: |
Retrieves or sets a Boolean value that indicates whether Microsoft Direct3D manages depth buffers for an application.
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);
System.Boolean
This property is read/write.
Value that is true if Direct3D manages the depth buffers, or false if it does not.
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.
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center