Marks the end of a section of event code.
public:
INT EndEvent()
Type: INT
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 Microsoft Direct3D profiling tool.
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.
EndEvent has no effect if the calling application is not running under an enabled Microsoft Direct3D profiling tool.
Header: Declared in d3d11_x.h (d3d11_1.h on other Windows platforms).
Library: Use d3d11_x.lib (d3d11.lib on other Windows platforms).