GraphicsDeviceManager.PreferredDepthStencilFormat Property (Microsoft.Xna.Framework)
Indicates the desired depth-stencil buffer format.
- C#
- VB
- F#
public DepthFormat PreferredDepthStencilFormat { get; set; }
Syntax for VB is not yet implemented.
Syntax for F# is not yet implemented.
Property Value
Type: Microsoft.Xna.Framework.Graphics.DepthFormat
The depth-stencil buffer format defines the scene depth precision and stencil bits available for effects during rendering.
When called at startup this will automatically set the format during initialization. If
set after startup you must call ApplyChanges() for the format to be changed.
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web