ID3DUserDefinedAnnotation::EndEvent method (d3d11_1.h)

Marks the end of a section of event code.

Syntax

INT EndEvent();

Return value

Returns the number of previous calls to the ID3DUserDefinedAnnotation::BeginEvent method that have not yet been finalized by calls to EndEvent.

The return value is –1 if the calling application is not running under a Direct3D profiling tool.

Remarks

You call the BeginEvent method to mark the beginning of the section of event code.

A user can visualize the event when the calling application is running under an enabled Direct3D profiling tool such as Microsoft Visual Studio Ultimate 2012.

EndEvent has no effect if the calling application is not running under an enabled Direct3D profiling tool.

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]
Target Platform Windows
Header d3d11_1.h
Library D3D11.lib

See also

ID3DUserDefinedAnnotation