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