Game.GraphicsDevice Property
Gets the current GraphicsDevice.
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
| Exception type | Condition |
|---|---|
| InvalidOperationException | This property requires a graphics device service in the game service container. |
Do not access this property until LoadContent is called.