GraphicsDevice.Reset Method (PresentationParameters)
Resets the current GraphicsDevice with the specified PresentationParameters.
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public void Reset (
PresentationParameters presentationParameters
)
Parameters
- presentationParameters
Describes the new presentation parameters. This value cannot be null.
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. |
DriverInternalErrorException | Internal driver error. Applications should generally shut down when receiving this error. |
OutOfVideoMemoryException | Direct3D does not have enough display memory to perform the operation. |
OutOfMemoryException | Direct3D could not allocate sufficient memory to complete the call. |
See Also
Reference
Reset
GraphicsDevice Class
GraphicsDevice Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista