SwapChainRenderTarget Class (Microsoft.Xna.Framework.Graphics)

A swap chain used for rendering to a secondary GameWindow.
System.Object
   Microsoft.Xna.Framework.Graphics.GraphicsResource
      Microsoft.Xna.Framework.Graphics.Texture
         Microsoft.Xna.Framework.Graphics.Texture2D
            Microsoft.Xna.Framework.Graphics.RenderTarget2D
               Microsoft.Xna.Framework.Graphics.SwapChainRenderTarget

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public class SwapChainRenderTarget : RenderTarget2D

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The SwapChainRenderTarget type exposes the following members.

  Platforms Name Description
PresentInterval  
Top
  Platforms Name Description
Bounds Gets the dimensions of the texture (Inherited from Texture2D.)
DepthStencilFormat  (Inherited from RenderTarget2D.)
Format  (Inherited from Texture.)
GraphicsDevice  (Inherited from GraphicsResource.)
Height Gets the height of the texture in pixels. (Inherited from Texture2D.)
IsContentLost  (Inherited from RenderTarget2D.)
IsDisposed  (Inherited from GraphicsResource.)
LevelCount  (Inherited from Texture.)
Mipmap  (Inherited from Texture2D.)
MultiSampleCount  (Inherited from RenderTarget2D.)
Name  (Inherited from GraphicsResource.)
RenderTargetUsage  (Inherited from RenderTarget2D.)
SampleDescription  (Inherited from Texture2D.)
Shared  (Inherited from Texture2D.)
Tag  (Inherited from GraphicsResource.)
Width Gets the width of the texture in pixels. (Inherited from Texture2D.)
Top
  Platforms Name Description
CreateSampleDescription  (Inherited from RenderTarget2D.)
CreateShaderResourceView  (Inherited from RenderTarget2D.)
Dispose(bool) The method that derived classes should override to implement disposing of managed and native resources. (Overrides RenderTarget2D.Dispose().)
Dispose()  (Inherited from GraphicsResource.)
Finalize  (Inherited from GraphicsResource.)
FromFile Creates a Texture2D from a file, supported formats bmp, gif, jpg, png, tif and dds (only for simple textures). May work with other formats, but will not work with tga files. This internally calls FromStream(GraphicsDevice, Stream). (Inherited from Texture2D.)
FromStream Creates a Texture2D from a stream, supported formats bmp, gif, jpg, png, tif and dds (only for simple textures). May work with other formats, but will not work with tga files. (Inherited from Texture2D.)
GetData<T>(T[]) Retrieves the contents of the texture Throws ArgumentException if data is null, data.length is too short or if arraySlice is greater than 0 and the GraphicsDevice doesn't support texture arrays (Inherited from Texture2D.)
GetData<T>(int, int, Nullable<Rectangle>, T[], int, int) Retrieves the contents of the texture Throws ArgumentException if data is null, data.length is too short or if arraySlice is greater than 0 and the GraphicsDevice doesn't support texture arrays (Inherited from Texture2D.)
GetData<T>(T[], int, int) Retrieves the contents of the texture Throws ArgumentException if data is null, data.length is too short or if arraySlice is greater than 0 and the GraphicsDevice doesn't support texture arrays (Inherited from Texture2D.)
GetData<T>(int, Nullable<Rectangle>, T[], int, int) Retrieves the contents of the texture Throws ArgumentException if data is null, data.length is too short or if arraySlice is greater than 0 and the GraphicsDevice doesn't support texture arrays (Inherited from Texture2D.)
GetSharedHandle Gets the handle to a shared resource. (Inherited from Texture.)
GetTexture2DDescription  (Inherited from RenderTarget2D.)
GraphicsDeviceResetting Called before the device is reset. Allows graphics resources to invalidate their state so they can be recreated after the device reset. Warning: This may be called after a call to Dispose() up until the resource is garbage collected. (Inherited from RenderTarget2D.)
Present Displays the contents of the active back buffer to the screen. 
QuerySelectedFormat  (Inherited from RenderTarget2D.)
Reload  (Inherited from Texture2D.)
SaveAsJpeg Converts the texture to a JPG image (Inherited from Texture2D.)
SaveAsPng Converts the texture to a PNG image (Inherited from Texture2D.)
SetData<T>(T[]) Changes the texture's pixels (Inherited from Texture2D.)
SetData<T>(T[], int, int) Changes the texture's pixels (Inherited from Texture2D.)
SetData<T>(int, int, Nullable<Rectangle>, T[], int, int) Changes the pixels of the texture Throws ArgumentNullException if data is null Throws ArgumentException if arraySlice is greater than 0, and the GraphicsDevice does not support texture arrays (Inherited from Texture2D.)
SetData<T>(int, Nullable<Rectangle>, T[], int, int) Changes the pixels of the texture (Inherited from Texture2D.)
ToString  (Inherited from GraphicsResource.)
Top
  Platforms Name Description
ContentLost  (Inherited from RenderTarget2D.)
Disposing  (Inherited from GraphicsResource.)
Top
This is an extension and not part of stock XNA. It is currently implemented for Windows and DirectX only.
Supported in:

    
 Windows DirectX Desktop