D3D11Control Constructor (DriverType, DeviceCreationFlags, FeatureLevel, NullableSwapChainDescription) |
Creates a new instance of the D3D11Controll class with the specified device and swapchain
properties.
Namespace: SlimDX.WindowsAssembly: SlimDX.D3D11Control (in SlimDX.D3D11Control.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic 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.
ExceptionsException | Condition |
---|
Direct3D11Exception |
The requested device could not be created. Use the ResultCode property to obtain the
specific error condition.
|
See Also