diff --git a/src/Xna.Framework.Graphics/Graphics/GraphicsContext.cs b/src/Xna.Framework.Graphics/Graphics/GraphicsContext.cs
index e6101672c96..0d9903fd52e 100644
--- a/src/Xna.Framework.Graphics/Graphics/GraphicsContext.cs
+++ b/src/Xna.Framework.Graphics/Graphics/GraphicsContext.cs
@@ -173,11 +173,21 @@ internal PixelShader PixelShader
set { _strategy.PixelShader = value; }
}
+ ///
+ /// Retrieves the currently bound render targets as an array.
+ ///
+ /// An array of representing the current render targets.
+
internal RenderTargetBinding[] GetRenderTargets()
{
return _strategy.GetRenderTargets();
}
+ ///
+ /// Copies the currently bound render targets into the provided array.
+ ///
+ /// The array to store the current render targets.
+ /// The number of render targets copied.
public int GetRenderTargets(RenderTargetBinding[] bindings)
{
return _strategy.GetRenderTargets(bindings);
diff --git a/src/Xna.Framework.Graphics/Graphics/GraphicsDevice.cs b/src/Xna.Framework.Graphics/Graphics/GraphicsDevice.cs
index 6621aa78b98..5d66f743442 100644
--- a/src/Xna.Framework.Graphics/Graphics/GraphicsDevice.cs
+++ b/src/Xna.Framework.Graphics/Graphics/GraphicsDevice.cs
@@ -398,11 +398,21 @@ public void SetRenderTargets(params RenderTargetBinding[] renderTargets)
CurrentContext.SetRenderTargets(renderTargets);
}
+ ///
+ /// Retrieves the currently bound render targets as an array.
+ ///
+ /// An array of representing the current render targets.
+
public RenderTargetBinding[] GetRenderTargets()
{
return CurrentContext.GetRenderTargets();
}
+ ///
+ /// Copies the currently bound render targets into the provided array.
+ ///
+ /// The array to store the current render targets.
+ /// The number of render targets copied.
public int GetRenderTargets(RenderTargetBinding[] bindings)
{
return CurrentContext.GetRenderTargets(bindings);