Click or drag to resize
D3D11Control Constructor (DriverType, DeviceCreationFlags, FeatureLevel, NullableSwapChainDescription)
Creates a new instance of the D3D11Controll class with the specified device and swapchain properties.

Namespace: SlimDX.Windows
Assembly: SlimDX.D3D11Control (in SlimDX.D3D11Control.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public D3D11Control(
	DriverType type,
	DeviceCreationFlags flags,
	FeatureLevel[] featureLevels,
	Nullable<SwapChainDescription> swapChainDescription
)

Parameters

type
Type: DriverType
The type of device to create.
flags
Type: DeviceCreationFlags
A list of runtime layers to enable.
featureLevels
Type: FeatureLevel
A list of feature levels which determine the order of feature levels to attempt to create.
swapChainDescription
Type: SystemNullableSwapChainDescription
The properties to use for creating the swapchain.
Exceptions
ExceptionCondition
Direct3D11Exception The requested device could not be created. Use the ResultCode property to obtain the specific error condition.
See Also