ID3D11UserDefinedAnnotationX::EndEvent Method

Marks the end of a section of event code.

Syntax

public:
INT EndEvent()  

Return value

Type: INT 

Returns the number of previous calls to the ID3D11UserDefinedAnnotationX::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 Microsoft 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 Microsoft Direct3D profiling tool such as Microsoft Visual Studio Ultimate 2012.

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

Requirements

Header: Declared in d3d11_x.h.

Library: Use d3d11_x.lib.

See also

Reference

ID3D11UserDefinedAnnotationX

ID3DUserDefinedAnnotation

ID3D11UserDefinedAnnotationX Interface

ID3D11UserDefinedAnnotationX Members