Defines the end of a user-defined event.
public:
INT PIXEndEvent()
Type: INTÂ
The nested depth of user event calls.
Each call to PIXEndEvent must be paired with a corresponding call to ID3D11ComputeContextX::PIXBeginEvent.
See also the PIXEndEvent function, in Tools: PIX Reference.
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.
Header: Declared in d3d11_x.h.
Library: Use d3d11_x.lib.