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

# PIXEndEvent()

> 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](https://docs.xbox.com/reference/tools/pix3/functions/pixbeginevent.md). The paired calls to [PIXBeginEvent](https://docs.xbox.com/reference/tools/pix3/functions/pixbeginevent.md) 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](https://docs.xbox.com/reference/tools/pix3/functions/pixbeginevent.md)\
[PIXEndEvent\_2](https://docs.xbox.com/reference/tools/pix3/functions/pixendevent_2.md)\
[PIX3](https://docs.xbox.com/reference/tools/pix3/pix3_members.md)\
[PIX (NDA topic)](https://docs.xbox.com/tools/tools-console/pix/pix.md)


## Related topics

- [PIXEndEvent](https://docs.xbox.com/reference/tools/pix3/functions/pixendevent-overloads.md)
- [PIXEndEvent(void*)](https://docs.xbox.com/reference/tools/pix3/functions/pixendevent_2.md)
- [PIXEndRetailEvent](https://docs.xbox.com/reference/tools/pix3/functions/pixendretailevent.md)
- [PIXBeginEvent](https://docs.xbox.com/reference/tools/pix3/functions/pixbeginevent-overloads.md)
- [PIXBeginEvent(UINT64, PCSTR, ...)](https://docs.xbox.com/reference/tools/pix3/functions/pixbeginevent.md)
