Partager via


GraphicsAdapter.GetCapabilities Method

Returns the capabilities of a device.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

public GraphicsDeviceCapabilities GetCapabilities (
         DeviceType deviceType
)

Parameters

  • deviceType
    The device to query.

Return Value

The capabilities of the specified device.

Exceptions

Exception type Condition
DeviceNotSupportedException (Xbox 360) Hardware is the only device type supported on this platform.

See Also

Tasks

How to: Check for Shader Model 2.0 Support

Reference

GraphicsAdapter Class
GraphicsAdapter Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista