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

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

## 语法

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

### 参数

*context*   \
类型：void\*

事件的上下文，接受 `ID3D12GraphicsCommandList\*`、`ID3D12GraphicsCommandList\*` 和 `ID3D12XboxDmaCommandList\*`（仅限 XBOX）。\
*context* 将 PIX 标记与所设置在其上的 D3D12 对象相关联。

### 返回值

类型：void

## 备注

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

## 要求

**头文件：** pix3.h

**库：** pixevt.lib

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

## 另请参阅

[PIXBeginEvent](/reference/tools/pix3/functions/pixbeginevent)\
[PIXEndEvent](/reference/tools/pix3/functions/pixendevent)\
[PIX3](/reference/tools/pix3/pix3_members)\
[PIX（NDA 主题）](/tools/tools-console/pix/pix)


## Related topics

- [PIXEndEvent 参考](/zh-CN/reference/tools/pix3/functions/pixendevent.md)
- [PIXEndEvent 函数](/zh-CN/reference/tools/pix3/functions/pixendevent-overloads.md)
- [PIXEndRetailEvent](/zh-CN/reference/tools/pix3/functions/pixendretailevent.md)
- [PIXBeginEvent 函数](/zh-CN/reference/tools/pix3/functions/pixbeginevent-overloads.md)
- [PIXBeginEvent 概览](/zh-CN/reference/tools/pix3/functions/pixbeginevent_4.md)
