Framework.CreateDeviceFromSettings(CreateDeviceFromSettings) Method (CreateDeviceFromSettings)

Tells the framework to change to a device created from settings described in a DeviceSettings object.

Definition

Visual Basic Public Sub CreateDeviceFromSettings( _
    ByVal deviceSettings As DeviceSettings _
)
C# public void CreateDeviceFromSettings(
    DeviceSettings deviceSettings
);
C++ public:
void CreateDeviceFromSettings(
    DeviceSettingsdeviceSettings
);
JScript public function CreateDeviceFromSettings(
    deviceSettings : DeviceSettings
);

Parameters

deviceSettings Microsoft.Samples.DirectX.UtilityToolkit.DeviceSettings
The DeviceSettings object contains the settings for the new device.

Remarks

If CreateWindow or SetWindow has not already been called, this method will call CreateWindow with default parameters. Instead of calling this, you can call SetDevice or CreateDevice.