Bagikan melalui


GraphicsDeviceManager.FindBestDevice Method

Finds the best device configuration that is compatible with the current device preferences.

Syntax

'Declaration
Protected Overridable Function FindBestDevice ( _
         anySuitableDevice As Boolean _
) As GraphicsDeviceInformation 
protected virtual GraphicsDeviceInformation FindBestDevice (
         bool anySuitableDevice
)
protected:
virtual GraphicsDeviceInformation FindBestDevice(
         bool anySuitableDevice
)

Parameters

  • anySuitableDevice
    Type: Boolean
    true if the FindBestDevice can select devices from any available adapter; false if only the current adapter should be considered.

Return Value

Type: GraphicsDeviceInformation
The best device configuration found.

Requirements

Namespace: Microsoft.Xna.Framework

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

See Also

Reference

GraphicsDeviceManager Class
GraphicsDeviceManager Members
Microsoft.Xna.Framework Namespace

Platforms

Windows Phone