> ## 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

> PIXEndEvent

# PIXEndEvent

Defines the end of a user-defined event.

## Syntax

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

### Parameters

*context*   \
Type: void\*

Context for the event, accepts `ID3D12GraphicsCommandList\*`, `ID3D12GraphicsCommandList\*`, and `ID3D12XboxDmaCommandList\*` (XBOX only).\
The *context* associates the PIX marker with the D3D12 object it is set on.

### 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](/reference/tools/pix3/functions/pixendevent)\
[PIX3](/reference/tools/pix3/pix3_members)\
[PIX (NDA topic)](/tools/tools-console/pix/pix)


## Related topics

- [PIXEndEvent function](/reference/tools/pix3/functions/pixendevent-overloads.md)
- [PIXEndEvent reference](/reference/tools/pix3/functions/pixendevent.md)
- [PIXEndRetailEvent](/reference/tools/pix3/functions/pixendretailevent.md)
- [PIXBeginEvent Function](/reference/tools/pix3/functions/pixbeginevent-overloads.md)
- [PIXBeginEvent function](/reference/tools/pix3/functions/pixbeginevent.md)
