D2D1_VERTEX_USAGE enumeration (d2d1effectauthor.h)

Indicates whether the vertex buffer changes infrequently or frequently.

Syntax

typedef enum D2D1_VERTEX_USAGE {
  D2D1_VERTEX_USAGE_STATIC = 0,
  D2D1_VERTEX_USAGE_DYNAMIC = 1,
  D2D1_VERTEX_USAGE_FORCE_DWORD = 0xffffffff
} ;

Constants

 
D2D1_VERTEX_USAGE_STATIC
Value: 0
The created vertex buffer is updated infrequently.
D2D1_VERTEX_USAGE_DYNAMIC
Value: 1
The created vertex buffer is changed frequently.
D2D1_VERTEX_USAGE_FORCE_DWORD
Value: 0xffffffff

Remarks

If a dynamic vertex buffer is created, Direct2D will not necessarily map the buffer directly to a Direct3D vertex buffer. Instead, a system memory copy can be copied to the rendering engine vertex buffer as the effects are rendered.

Requirements

Requirement Value
Minimum supported client Windows 8 and Platform Update for Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | UWP apps]
Header d2d1effectauthor.h

See also

D2D1_BLEND_DESCRIPTION

ID2D1BlendTransform