ID3D11DeviceContextX::PIXEndEvent Method

Defines the end of a user-defined event.

Syntax

public:
INT PIXEndEvent()  

Return value

Type: INT 

The nested depth of user event calls.

Remarks

Each call to PIXEndEvent must be paired with a corresponding call to ID3D11DeviceContextX::PIXBeginEvent.

See also the PIXEndEvent function, in Tools: PIX Reference.

Example

Returning the nested depth of user event calls:

C++

PIXBeginEvent("foo") // Returns 0, as there are no preceding events.
PIXBeginEvent("bar") // Returns 1, as the call is inside of event "foo".
PIXBeginEvent("baz") // Returns 2, as the call is inside of events "foo" and "bar".
PIXEndEvent()        // Returns 2, as the call is inside of events "foo" and "bar".
PIXEndEvent()        // Returns 1, as the call is inside of event "foo".
PIXEndEvent()        // Returns 0, as there are no enclosing user events.  

Requirements

Header: Declared in d3d11_x.h.

Library: Use d3d11_x.lib.

See also

PIX API Reference

Reference

PIXEndEvent

PIXEndEvent

PIXEndEvent

ID3D11DeviceContextX Interface

ID3D11DeviceContextX Members