RenderTargetUsage Enumeration

Determines how render target data is used once a new render target is set.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

public enum RenderTargetUsage

Members

  Member name Description
DiscardContents Always clears the render target data.
PlatformContents Either clears or keeps the data, depending on the current platform. On Xbox 360, the render target will discard contents. On PC, the render target will discard if multisampling is enabled, and preserve the contents if not.
PreserveContents Always keeps the render target data.

See Also

Concepts

What Is a Render Target?

Reference

SetRenderTarget
GetTexture
GetTexture
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista, Zune