D3D11_CREATE_DEVICE_FLAG Enumeration

Describes parameters that are used to create a device.

Syntax

typedef enum D3D11_CREATE_DEVICE_FLAG {
  D3D11_CREATE_DEVICE_SINGLETHREADED,
  D3D11_CREATE_DEVICE_DEBUG,
  D3D11_CREATE_DEVICE_SWITCH_TO_REF,
  D3D11_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS,
  D3D11_CREATE_DEVICE_BGRA_SUPPORT,
  D3D11_CREATE_DEVICE_DEBUGGABLE,
  D3D11_CREATE_DEVICE_PREVENT_ALTERING_LAYER_SETTINGS_FROM_REGISTRY,
  D3D11_CREATE_DEVICE_DISABLE_GPU_TIMEOUT,
  D3D11_CREATE_DEVICE_VIDEO_SUPPORT
} ;

Constants

Remarks

Device creation flags are used by D3D11CreateDevice and D3D11CreateDeviceAndSwapChain.

An application might dynamically create (and destroy) threads to improve performance especially on a machine with multiple CPU cores. There may be cases, however, when an application needs to prevent extra threads from being created. This can happen when you want to simplify debugging, profile code or develop a tool for instance. For these cases, use D3D11_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS to request that the runtime and video driver not create any additional threads that might interfere with the application.

Requirements

   
Header d3d11.h

See Also

Core Enumerations