Framework.CreateDeviceFromSettings Method

Language:

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, _
    ByVal preserveInput As Boolean _
)
C# public void CreateDeviceFromSettings(
    DeviceSettings deviceSettings,
    bool preserveInput
);
C++ public:
void CreateDeviceFromSettings(
    DeviceSettingsdeviceSettings,
    bool preserveInput
);
JScript public function CreateDeviceFromSettings(
    deviceSettings : DeviceSettings,
    preserveInput : boolean
);

Parameters

deviceSettings Microsoft.Samples.DirectX.UtilityToolkit.DeviceSettings
The DeviceSettings object contains the settings for the new device.
preserveInput System.Boolean
Set to true if the device settings in the DeviceSettings object will be used without change. Set to false if a valid device will be created with device settings that are as near as possible to the original device settings in the DeviceSettings object.

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.


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center