> ## 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](/zh-TW/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_clearstate_public)。

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

宣告執行中繼命令的呼叫所修改的命令清單狀態。如果已設定所有狀態位元，則等同於呼叫 [ID3D12GraphicsCommandList::ClearState](/zh-TW/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-TW/reference/graphics/d3d12/interfaces/id3d12device5/methods/id3d12device5_enumeratemetacommands_public.md)
- [D3D12_META_COMMAND_PARAMETER_DESC](/zh-TW/reference/graphics/d3d12/structs/d3d12_meta_command_parameter_desc_public.md)
- [D3D12_META_COMMAND_PARAMETER_STAGE](/zh-TW/reference/graphics/d3d12/enums/d3d12_meta_command_parameter_stage_public.md)
- [D3D12_META_COMMAND_PARAMETER_TYPE](/zh-TW/reference/graphics/d3d12/enums/d3d12_meta_command_parameter_type_public.md)
- [D3D12_META_COMMAND_PARAMETER_FLAGS](/zh-TW/reference/graphics/d3d12/enums/d3d12_meta_command_parameter_flags_public.md)
