共用方式為


RenderTarget Class

Represents a resource that will be written to at the end of a render pass.

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

Syntax

public abstract class RenderTarget : IDisposable

Remarks

After a render pass the render target contains the color information of a rendered image.

Render targets represent a linear area of display memory and usually resides in the display memory of the display card. Because of this, RenderTarget objects must be recreated when the device is reset.

See Also

Concepts

Displays, Client Bounds, Viewports, and Back Buffers

Tasks

How to: Load Resources

Reference

SetRenderTarget
RenderTarget2D
RenderTargetCube
GraphicsDeviceManager.DeviceReset Event
RenderTarget Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista