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

# ID3D12MetaCommand

> 表示元命令。元命令是一个 Direct3D 12 对象，表示由独立硬件供应商 (IHV) 加速的算法。

表示元命令。元命令是一个 Direct3D 12 对象，表示由独立硬件供应商 (IHV) 加速的算法。它是对由驱动程序实现的命令生成器的不透明引用。

元命令的生命周期与引用它的命令列表的生命周期绑定。因此，只有当没有引用它的命令列表当前正在 GPU 上执行时，才应该释放元命令。

元命令可以封装一组管线状态对象 (PSO)、绑定、中间资源状态以及 Draw/Dispatch 调用。可以将元命令的签名视为类似于 C 风格的函数，具有多个输入/输出参数，且没有返回值。

## 要求

**头文件：** d3d12\_xs.h 或 d3d12\_x.h\
**库：** d3d12\_xs.lib 或 d3d12\_x.lib\
**支持的平台**：XBOX Series 主机和 XBOX One 系列

## 另请参阅

[ID3D12Pageable](/reference/graphics/d3d12/interfaces/id3d12pageable/id3d12pageable_public)


## Related topics

- [InitializeMetaCommand (XBOX Series 主机)](/zh-CN/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist4/methods/id3d12graphicscommandlist4_initializemetacommand_public.md)
- [GetRequiredParameterResourceSize](/zh-CN/reference/graphics/d3d12/interfaces/id3d12metacommand/methods/id3d12metacommand_getrequiredparameterresourcesize_public.md)
- [CreateMetaCommand (XBOX Series 主机)](/zh-CN/reference/graphics/d3d12/interfaces/id3d12device5/methods/id3d12device5_createmetacommand_public.md)
- [D3D12_META_COMMAND_PARAMETER_DESC](/zh-CN/reference/graphics/d3d12/structs/d3d12_meta_command_parameter_desc_public.md)
- [D3D12_META_COMMAND_DESC](/zh-CN/reference/graphics/d3d12/structs/d3d12_meta_command_desc_public.md)
