> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PIXEndEvent reference

> PIXEndEvent reference

# PIXEndEvent reference

Defines the end of a user-defined event.

## Syntax

```cpp theme={null}
void PIXEndEvent(  
)  
```

### Parameters

### Return value

Type: void

## Remarks

Each call to `PIXEndEvent` must be paired with a corresponding call to [PIXBeginEvent](/reference/tools/pix3/functions/pixbeginevent). The paired calls to [PIXBeginEvent](/reference/tools/pix3/functions/pixbeginevent) and `PIXEndEvent` must occur on the same thread.  In the event of mismatched markers, PIX will throw a warning in a timing capture. Mismatched markers will cause an unexpected or unusable rendering of the PIX timeline.
In a worst case scenario, mismatched event calls may cause PIX to crash.

## Requirements

**Header:** pix3.h

**Library:** pixevt.lib

**Supported platforms:** XBOX One family consoles and XBOX Series consoles

## See also

[PIXBeginEvent](/reference/tools/pix3/functions/pixbeginevent)\
[PIXEndEvent\_2](/reference/tools/pix3/functions/pixendevent_2)\
[PIX3](/reference/tools/pix3/pix3_members)\
[PIX (NDA topic)](/tools/tools-console/pix/pix)


## Related topics

- [PIXEndEvent](/reference/tools/pix3/functions/pixendevent_2.md)
- [PIXEndEvent function](/reference/tools/pix3/functions/pixendevent-overloads.md)
- [PIXEndRetailEvent](/reference/tools/pix3/functions/pixendretailevent.md)
- [PIXBeginEvent reference](/reference/tools/pix3/functions/pixbeginevent_3.md)
- [PIXBeginEvent function reference](/reference/tools/pix3/functions/pixbeginevent_2.md)
