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

# PIXEndEvent 参考

定义用户定义事件的结束。

## 语法

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

### 参数

### 返回值

类型：void

## 备注

每次调用 `PIXEndEvent` 都必须与相应的对 [PIXBeginEvent](https://docs.xbox.com/zh-CN/reference/tools/pix3/functions/pixbeginevent.md) 的调用配对。配对的 [PIXBeginEvent](https://docs.xbox.com/zh-CN/reference/tools/pix3/functions/pixbeginevent.md) 和 `PIXEndEvent` 调用必须在同一线程上发生。当出现标记不匹配时，PIX 将在计时捕获中抛出警告。标记不匹配将导致 PIX 时间线出现意外或不可用的渲染。
在最坏情况下，不匹配的事件调用可能会导致 PIX 崩溃。

## 要求

**头文件：** pix3.h

**库：** pixevt.lib

**支持的平台：** XBOX One 系列主机和 XBOX Series 主机

## 另请参阅

[PIXBeginEvent](https://docs.xbox.com/zh-CN/reference/tools/pix3/functions/pixbeginevent.md)\
[PIXEndEvent\_2](https://docs.xbox.com/zh-CN/reference/tools/pix3/functions/pixendevent_2.md)\
[PIX3](https://docs.xbox.com/zh-CN/reference/tools/pix3/pix3_members.md)\
[PIX（NDA 主题）](https://docs.xbox.com/zh-CN/tools/tools-console/pix/pix.md)


## Related topics

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