GraphicsDevice Constructor

Creates an instance of this object.

Syntax

'Declaration
Public Sub New ( _
         adapter As GraphicsAdapter, _
         graphicsProfile As GraphicsProfile, _
         presentationParameters As PresentationParameters _
)
public GraphicsDevice (
         GraphicsAdapter adapter,
         GraphicsProfile graphicsProfile,
         PresentationParameters presentationParameters
)
public:
GraphicsDevice(
         GraphicsAdapter adapter,
         GraphicsProfile graphicsProfile,
         PresentationParameters presentationParameters
)

Parameters

Exceptions

Exception type Condition
NoSuitableGraphicsDeviceException The graphics adapter does not support the requested capabilities.
NotSupportedException Could not find a graphics device that supports the profile.

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