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                             = 0x1,
  D3D11_CREATE_DEVICE_DEBUG                                      = 0x2,
  D3D11_CREATE_DEVICE_SWITCH_TO_REF                              = 0x4,
  D3D11_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS   = 0x8,
  D3D11_CREATE_DEVICE_BGRA_SUPPORT                               = 0x20 
} D3D11_CREATE_DEVICE_FLAG;

Konstanten

D3D11_CREATE_DEVICE_SINGLETHREADED

You should use this flag if your application will only call methods of Direct3D 11 interfaces from a single thread. By default, the ID3D11Device object is thread-safe. By using this flag, you can increase performance. However, if you use this flag and your application calls methods of Direct3D 11 interfaces from multiple threads, undefined behavior might result.

D3D11_CREATE_DEVICE_DEBUG

Creates a device that supports the debug layer.

D3D11_CREATE_DEVICE_SWITCH_TO_REF

Hinweis  This flag is not supported in Direct3D 11.

D3D11_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS

Prevents multiple threads from being created. When this flag is used with a Windows Advanced Rasterization Platform (WARP) device, no additional threads will be created by WARP and all rasterization will occur on the calling thread. This flag is not recommended for general use. See remarks.

D3D11_CREATE_DEVICE_BGRA_SUPPORT

Required for Direct2D interoperability with Direct3D resources.

Hinweise

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.

Anforderungen

Header

D3D11.h

Siehe auch

Core Enumerations

 

 

Anzeigen: