D3D10_CREATE_DEVICE_FLAG
D3D10_CREATE_DEVICE_FLAG
Device creation flags.
typedef enum D3D10_CREATE_DEVICE_FLAG
{
D3D10_CREATE_DEVICE_SINGLETHREADED = 0x1,
D3D10_CREATE_DEVICE_DEBUG = 0x2,
D3D10_CREATE_DEVICE_SWITCH_TO_REF = 0x4,
D3D10_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS = 0x8,
} D3D10_CREATE_DEVICE_FLAG;
Constants
- D3D10_CREATE_DEVICE_SINGLETHREADED
- Create a single-threaded device. See remarks.
- D3D10_CREATE_DEVICE_DEBUG
- Create a device that supports the debug layer.
- D3D10_CREATE_DEVICE_SWITCH_TO_REF
- Create both a software (REF) and hardware (HAL) version of the device simultaneously, which allows an application to switch to a reference device to enable debugging. See ID3D10SwitchToRef Interface for more information.
- D3D10_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS
- Reserved.
Remarks
Device creation flags are used by D3D10CreateDevice and D3D10CreateDeviceAndSwapChain.
By default, all Direct3D 10 calls are handled in a thread-safe way. By creating a single-threaded device, you disable thread-safe calling.
Requirements
Header: Declared in D3D10.h.
Library:
Use D3D10.lib.
See Also
Core Enumerations