GraphicsDevice.SetRenderTargets Method
Sets an array of render targets.
Syntax
'Declaration
Public Sub SetRenderTargets ( _
renderTargets As RenderTargetBinding() _
)
public void SetRenderTargets (
params RenderTargetBinding[] renderTargets
)
public:
void SetRenderTargets(
params RenderTargetBinding renderTargets[]
)
Parameters
- renderTargets
Type: RenderTargetBinding
[ParamArrayAttribute] An array of render targets.
Exceptions
Exception type | Condition |
---|---|
NotSupportedException | The profile supports a maximum of 1 simultaneous render targets. |
Requirements
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)
See Also
Reference
GraphicsDevice Class
GraphicsDevice Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Windows Phone