 |
DXDeviceCreateDevice Method |
CreateDevice creates DirectX device with specified parameters.
This method correctly handles device creation when featureLevels array contains Level_11_1 but that runtime is not installed on the system (for example on Windows 7 SP 1 without Platform Update).
If device cannot be created an exception is thrown or null is returned.
Namespace: Ab3d.DirectXAssembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.1.9105.2048 (1.0.0.0)
Syntaxpublic static Device CreateDevice(
DriverType driverType,
Adapter adapter,
DeviceCreationFlags deviceCreationFlags,
FeatureLevel[] featureLevels
)
Parameters
- driverType DriverType
- DriverType
- adapter Adapter
- adapter
- deviceCreationFlags DeviceCreationFlags
- deviceCreationFlags
- featureLevels FeatureLevel
- array of FeatureLevel (or null)
Return Value
DeviceCreates DirectX device. If device cannot be created an exception is thrown or null is returned.
See Also