Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

D2D1_THREADING_MODE enumeration

Specifies the threading mode used while simultaneously creating the device, factory, and device context.

Syntax


typedef enum  { 
  D2D1_THREADING_MODE_SINGLE_THREADED  = 0,
  D2D1_THREADING_MODE_MULTI_THREADED   = 1
} D2D1_THREADING_MODE;

Constants

D2D1_THREADING_MODE_SINGLE_THREADED

Resources may only be invoked serially. Device context state is not protected from multi-threaded access.

D2D1_THREADING_MODE_MULTI_THREADED

Resources may be invoked from multiple threads. Resources use interlocked reference counting and their state is protected.

Requirements

Minimum supported client

Windows 8 and Platform Update for Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Header

D2d1_1.h

See also

Multithreaded Direct2D Apps
D2D1_CREATION_PROPERTIES

 

 

Show:
© 2017 Microsoft