D2D1_PRESENT_OPTIONS enumeration (d2d1.h)

Describes how a render target behaves when it presents its content. This enumeration allows a bitwise combination of its member values.

Syntax

typedef enum D2D1_PRESENT_OPTIONS {
  D2D1_PRESENT_OPTIONS_NONE = 0x00000000,
  D2D1_PRESENT_OPTIONS_RETAIN_CONTENTS = 0x00000001,
  D2D1_PRESENT_OPTIONS_IMMEDIATELY = 0x00000002,
  D2D1_PRESENT_OPTIONS_FORCE_DWORD = 0xffffffff
} ;

Constants

 
D2D1_PRESENT_OPTIONS_NONE
Value: 0x00000000
The render target waits until the display refreshes to present and discards the frame upon presenting.
D2D1_PRESENT_OPTIONS_RETAIN_CONTENTS
Value: 0x00000001
The render target does not discard the frame upon presenting.
D2D1_PRESENT_OPTIONS_IMMEDIATELY
Value: 0x00000002
The render target does not wait until the display refreshes to present.
D2D1_PRESENT_OPTIONS_FORCE_DWORD
Value: 0xffffffff

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