Share via


GraphicsDevice.Reset Method (PresentationParameters, GraphicsAdapter)

Resets the specified Reset with the specified presentation parameters.

Syntax

'Declaration
Public Sub Reset ( _
         presentationParameters As PresentationParameters, _
         graphicsAdapter As GraphicsAdapter _
)
public void Reset (
         PresentationParameters presentationParameters,
         GraphicsAdapter graphicsAdapter
)
public:
void Reset(
         PresentationParameters presentationParameters,
         GraphicsAdapter graphicsAdapter
)

Parameters

  • presentationParameters
    Type: PresentationParameters
    Describes the new presentation parameters. This value cannot be null.
  • graphicsAdapter
    Type: GraphicsAdapter
    The graphics device being reset.

Exceptions

Exception type Condition
ArgumentNullException presentationParameters is null.
DeviceLostException The GraphicsDevice is lost but cannot be reset at this time. Therefore, rendering is not possible.
OutOfMemoryException Direct3D could not allocate sufficient memory to complete the call."

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