Click or drag to resize
AB4D logo

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.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax
C#
public 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

Device
Creates DirectX device. If device cannot be created an exception is thrown or null is returned.
See Also