D2D1_RENDER_TARGET_TYPE enumeration (d2d1.h)
Describes whether a render target uses hardware or software rendering, or if Direct2D should select the rendering mode.
Syntax
typedef enum D2D1_RENDER_TARGET_TYPE {
D2D1_RENDER_TARGET_TYPE_DEFAULT = 0,
D2D1_RENDER_TARGET_TYPE_SOFTWARE = 1,
D2D1_RENDER_TARGET_TYPE_HARDWARE = 2,
D2D1_RENDER_TARGET_TYPE_FORCE_DWORD = 0xffffffff
} ;
Constants
D2D1_RENDER_TARGET_TYPE_DEFAULT Value: 0 The render target uses hardware rendering, if available; otherwise, it uses software rendering. |
D2D1_RENDER_TARGET_TYPE_SOFTWARE Value: 1 The render target uses software rendering only. |
D2D1_RENDER_TARGET_TYPE_HARDWARE Value: 2 The render target uses hardware rendering only. |
D2D1_RENDER_TARGET_TYPE_FORCE_DWORD Value: 0xffffffff |
Remarks
Not every render target supports hardware rendering. For more information, see the Render Targets Overview.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps] |
Header | d2d1.h |