Freigeben über


PresentParameters.EnableAutoDepthStencil Property

Indicates whether or not Direct3D manages depth buffers for an application.

Namespace: Microsoft.WindowsMobile.DirectX.Direct3D
Assembly: Microsoft.WindowsMobile.DirectX (in microsoft.windowsmobile.directx.dll)

Syntax

'Declaration
Public Property EnableAutoDepthStencil As Boolean
'Usage
Dim instance As PresentParameters
Dim value As Boolean

value = instance.EnableAutoDepthStencil

instance.EnableAutoDepthStencil = value
public bool EnableAutoDepthStencil { get; set; }
public:
property bool EnableAutoDepthStencil {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_EnableAutoDepthStencil ()

/** @property */
public void set_EnableAutoDepthStencil (boolean value)
public function get EnableAutoDepthStencil () : boolean

public function set EnableAutoDepthStencil (value : boolean)

Property Value

true if Direct3D manages the depth buffers; otherwise, false.

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.

.NET Framework Security

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

Platforms

Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Version Information

.NET Compact Framework

Supported in: 2.0

See Also

Reference

PresentParameters Class
PresentParameters Members
Microsoft.WindowsMobile.DirectX.Direct3D Namespace