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

# D3D12_META_COMMAND_DESC

> 描述元命令。

描述元命令。

## 语法

```cpp theme={null}
typedef struct D3D12_META_COMMAND_DESC
{
    GUID Id;
    LPCWSTR Name;
    D3D12_GRAPHICS_STATES InitializationDirtyState;
    D3D12_GRAPHICS_STATES ExecutionDirtyState;
} D3D12_META_COMMAND_DESC
```

### 成员

*Id*\
类型：GUID

唯一标识元命令的 [GUID](https://learn.microsoft.com/en-us/windows/win32/api/guiddef/ns-guiddef-guid)。

*Name*\
类型：LPCWSTR

元命令名称。

*InitializationDirtyState*\
类型：D3D12\_GRAPHICS\_STATES

声明由初始化元命令的调用所修改的命令列表状态。如果设置了所有状态位，则相当于调用 [ID3D12GraphicsCommandList::ClearState](/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_clearstate_public)。

*ExecutionDirtyState*\
类型：D3D12\_GRAPHICS\_STATES

声明由执行元命令的调用所修改的命令列表状态。如果设置了所有状态位，则相当于调用 [ID3D12GraphicsCommandList::ClearState](/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_clearstate_public)。

## 要求

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


## Related topics

- [EnumerateMetaCommands (XBOX Series 主机)](/zh-CN/reference/graphics/d3d12/interfaces/id3d12device5/methods/id3d12device5_enumeratemetacommands_public.md)
- [D3D12_META_COMMAND_PARAMETER_DESC](/zh-CN/reference/graphics/d3d12/structs/d3d12_meta_command_parameter_desc_public.md)
- [D3D12_META_COMMAND_PARAMETER_STAGE](/zh-CN/reference/graphics/d3d12/enums/d3d12_meta_command_parameter_stage_public.md)
- [D3D12_META_COMMAND_PARAMETER_TYPE](/zh-CN/reference/graphics/d3d12/enums/d3d12_meta_command_parameter_type_public.md)
- [D3D12_META_COMMAND_PARAMETER_FLAGS](/zh-CN/reference/graphics/d3d12/enums/d3d12_meta_command_parameter_flags_public.md)
