RenderTargetUsage Enumeration (Microsoft.Xna.Framework.Graphics)

Defines if the previous content in a render target is preserved when it set on the graphics device.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: MonoGame.Framework (MonoGame.Framework.dll
  • C#
  • VB
  • F#
public enum RenderTargetUsage

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The RenderTargetUsage type exposes the following members.

  Platforms Name Description
DiscardContents The render target content will not be preserved. 
PlatformContents The render target content might be preserved if the platform can do so without a penalty in performance or memory usage. 
PreserveContents The render target content will be preserved even if it is slow or requires extra memory. 
Supported in:

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop