Table of Contents

Enum DeviceCreationFlags

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

Describes parameters that are used to create a device.

[Flags]
public enum DeviceCreationFlags

Fields

BgraSupport = 32

Required for Direct2D interoperability with Direct3D resource.

Debug = 2

Creates a device that supports the debug layer.

None = 0

None.

VideoSupport = 2048

Forces the creation of the Direct3D device to fail if the display driver is not implemented to the WDDM for Windows Developer Preview (WDDM 1.2). When the display driver is not implemented to WDDM 1.2, only a Direct3D device that is created with feature level 9.1, 9.2, or 9.3 supports video; therefore, if this flag is set, the runtime creates the Direct3D device only for feature level 9.1, 9.2, or 9.3. We recommend not to specify this flag for applications that want to favor Direct3D capability over video. If feature level 10 and higher is available, the runtime will use that feature level regardless of video support.

If this flag is set, device creation on the Basic Render Device (BRD) will succeed regardless of the BRD's missing support for video decode. This is because the Media Foundation video stack operates in software mode on BRD. In this situation, if you force the video stack to create the Direct3D device twice (create the device once with this flag, next discover BRD, then again create the device without the flag), you actually degrade performance.

If you attempt to create a Direct3D device with driver type SharpDX.Direct3D.DriverType.Null, SharpDX.Direct3D.DriverType.Reference, or SharpDX.Direct3D.DriverType.Software, device creation fails at any feature level because none of the associated drivers provide video capability. If you attempt to create a Direct3D device with driver type SharpDX.Direct3D.DriverType.Warp, device creation succeeds to allow software fallback for video.

Direct 3D 11:?? - This value is not supported until Direct3D 11.1.